Build: Reuse PCH file between all script modules

(cherry picked from commit eac4bf825a)
This commit is contained in:
Shauren
2024-02-25 00:05:19 +01:00
parent 2cb5f7a81e
commit 45d7a44555
2 changed files with 8 additions and 2 deletions

View File

@@ -225,8 +225,8 @@ 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})
add_cxx_pch("scripts" ${PRIVATE_PCH_HEADER} ${DYNAMIC_SCRIPT_MODULE_PROJECTS})
reuse_cxx_pch("${DYNAMIC_SCRIPT_MODULE_PROJECTS}" scripts)
endif()
# Remove all shared libraries in the installl directory which