mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Build: Fixed VS always triggering a full build when PCH is enabled, even if only a source file was edited
(cherry picked from commit9b1dfe5e5e) (cherry picked from commitb64583b7c1)
This commit is contained in:
@@ -166,6 +166,11 @@ foreach(SCRIPT_MODULE ${SCRIPT_MODULE_LIST})
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
game)
|
||||
|
||||
target_include_directories(${SCRIPT_MODULE_PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
set_target_properties(${SCRIPT_MODULE_PROJECT_NAME}
|
||||
PROPERTIES
|
||||
FOLDER
|
||||
@@ -221,7 +226,7 @@ set_target_properties(scripts
|
||||
# Generate precompiled header
|
||||
if (USE_SCRIPTPCH)
|
||||
list(APPEND ALL_SCRIPT_PROJECTS scripts ${DYNAMIC_SCRIPT_MODULE_PROJECTS})
|
||||
add_cxx_pch("${ALL_SCRIPT_PROJECTS}" ${PRIVATE_PCH_HEADER} ${PRIVATE_PCH_SOURCE})
|
||||
add_cxx_pch("${ALL_SCRIPT_PROJECTS}" ${PRIVATE_PCH_HEADER})
|
||||
endif()
|
||||
|
||||
# Remove all shared libraries in the installl directory which
|
||||
|
||||
Reference in New Issue
Block a user