From 4508487afa234601937880ce8bb43de57a739aad Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sat, 17 Dec 2022 02:28:42 +0400 Subject: [PATCH] Fix cmake for macOS build --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7b251ba0..1f56b7f76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,7 @@ option(ENABLE_GITVERSION "Enable Version.cpp with Git commit hash" ON) option(ENABLE_DEBUG_CONSOLE "Enable debug console for Windows builds" ON) option(ENABLE_MULTI_PROCESS_BUILDS "Enable /MP flag for MSVS solution" ON) option(ENABLE_SINGLE_APP_BUILD "Builds client and server as single executable" OFF) +option(COPY_CONFIG_ON_BUILD "Copies config folder into output directory at building phase" ON) # Used for Snap packages and also useful for debugging if(NOT APPLE_IOS) @@ -80,8 +81,8 @@ if(ENABLE_ERM AND NOT ENABLE_LUA) set(ENABLE_LUA ON) endif() -# We want to deploy assets into build directory for easier debugging without install -if(NOT APPLE_IOS AND NOT COPY_CONFIG_ON_BUILD) +# We don't want to deploy assets into build directory for iOS build +if(APPLE_IOS AND COPY_CONFIG_ON_BUILD) set(COPY_CONFIG_ON_BUILD OFF) endif()