CMakeLists: Add wildcards to remove tmp files from ZERO_CHECK regeneration (Xcode)

(cherry picked from commit 0f9f4f6022dae813092be3a16247e3312a00c46c)
This commit is contained in:
Stephen Saunders 2023-10-11 22:48:44 -04:00
parent 6e8f74154f
commit 9c62802810

View file

@ -1776,7 +1776,8 @@ else()
# delete precompiled header file after executable is compiled: IDE build case (e.g. Xcode)
else()
add_custom_command(TARGET RBDoom3BFG POST_BUILD
COMMAND ${remove_command} "idlib/precompiled.h.gch"
# SRS - added wildcards to remove tmp files from cmake ZERO_CHECK regeneration
COMMAND ${remove_command} "idlib/precompiled.h*.gch*"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "remove idlib/precompiled.h.gch"
)