Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Build/CMake: enable unity builds for scripts project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovahlord committed Dec 9, 2023
1 parent 40d6e2a commit 758694a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/server/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,15 @@ set_target_properties(scripts
FOLDER
"scripts")

if(UNITY_BUILDS)
set_target_properties(scripts
PROPERTIES UNITY_BUILD ON)
set_target_properties(scripts
PROPERTIES
UNITY_BUILD_MODE BATCH
UNITY_BUILD_BATCH_SIZE 8)
endif()

# Generate precompiled header
if(USE_SCRIPTPCH)
list(APPEND ALL_SCRIPT_PROJECTS scripts ${DYNAMIC_SCRIPT_MODULE_PROJECTS})
Expand Down

0 comments on commit 758694a

Please sign in to comment.