From b1fcb55ba4911daaa5a10cbfea78f7cd7afdddcf Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Sun, 22 Jun 2025 16:18:05 -0500 Subject: [PATCH] Update CMakeLists.txt --- zone/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/zone/CMakeLists.txt b/zone/CMakeLists.txt index 99c31e8b9..6391b826e 100644 --- a/zone/CMakeLists.txt +++ b/zone/CMakeLists.txt @@ -275,7 +275,11 @@ set(lua_sources ) add_library(lua_zone STATIC ${lua_sources}) -set_target_properties(lua_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 8) +if (MSVC) + set_target_properties(lua_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 4) +else() + set_target_properties(lua_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 8) +endif() # perl unity build set(perl_sources @@ -306,7 +310,11 @@ set(perl_sources ) add_library(perl_zone STATIC ${perl_sources}) -set_target_properties(perl_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 8) +if (MSVC) + set_target_properties(perl_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 4) +else() + set_target_properties(perl_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 8) +endif() # gm commands set(gm_command_sources