restore the precompiled header

test for whether configure depends will help with the precompiled header issue reported by steve_yorkshire
This commit is contained in:
marauder2k7 2026-06-17 07:16:17 +01:00
parent 1683b74937
commit fe05474f1e
2 changed files with 18 additions and 18 deletions

View file

@ -767,21 +767,21 @@ if (TORQUE_TARGET_PROPERTIES)
endif (TORQUE_TARGET_PROPERTIES)
target_include_directories(${TORQUE_APP_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_BINARY_DIR}/temp" ${TORQUE_INCLUDE_DIRECTORIES})
# target_precompile_headers(${TORQUE_APP_NAME} PRIVATE
# <vector>
# <string>
# <map>
# <memory>
# <algorithm>
# <type_traits>
# <cstring>
# <cstdlib>
# <cstdio>
# <cmath>
# <cstdint>
# <cmath>
# "console/engineObject.h"
# )
target_precompile_headers(${TORQUE_APP_NAME} PRIVATE
<vector>
<string>
<map>
<memory>
<algorithm>
<type_traits>
<cstring>
<cstdlib>
<cstdio>
<cmath>
<cstdint>
<cmath>
"console/engineObject.h"
)
if(TORQUE_TESTING)
if(WIN32)

View file

@ -54,11 +54,11 @@ ENDMACRO()
# specified directory then adds them to the TORQUE_SOURCE_FILES variable.
macro (torqueAddSourceDirectories)
foreach(ARGUMENT ${ARGV})
file(GLOB SCANNED_SOURCE_FILES "${ARGUMENT}/*.cpp")
file(GLOB SCANNED_INCLUDE_FILES "${ARGUMENT}/*.h")
file(GLOB SCANNED_SOURCE_FILES CONFIGURE_DEPENDS "${ARGUMENT}/*.cpp")
file(GLOB SCANNED_INCLUDE_FILES CONFIGURE_DEPENDS "${ARGUMENT}/*.h")
if (APPLE)
file(GLOB SCANNED_MAC_FILES "${ARGUMENT}/*.mm")
file(GLOB SCANNED_MAC_FILES CONFIGURE_DEPENDS "${ARGUMENT}/*.mm")
endif (APPLE)
# Set in both current and parent scope so this macro can be used from loaded modules