From 241d066bf3e45eecbf4a1356bbb76fb9007ab61b Mon Sep 17 00:00:00 2001 From: mordred Date: Thu, 13 Dec 2018 13:01:41 +0100 Subject: [PATCH] Only use precompiled headers under linux --- src/scripts/CMakeLists.txt | 4 +++- src/world/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/scripts/CMakeLists.txt b/src/scripts/CMakeLists.txt index dd9f0759..8b45aed0 100644 --- a/src/scripts/CMakeLists.txt +++ b/src/scripts/CMakeLists.txt @@ -56,7 +56,9 @@ foreach(_scriptDir ${children}) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ScriptLoader.cpp.in" "${_scriptDir}/ScriptLoader.cpp") - cotire("script_${_name}") + if( UNIX ) + cotire("script_${_name}") + endif() if(MSVC) add_custom_command(TARGET "script_${_name}" POST_BUILD diff --git a/src/world/CMakeLists.txt b/src/world/CMakeLists.txt index 122bdf93..b01db168 100644 --- a/src/world/CMakeLists.txt +++ b/src/world/CMakeLists.txt @@ -41,8 +41,8 @@ target_link_libraries( world PUBLIC common ) target_include_directories( world PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" ) -if (UNIX) -# cotire( world ) +if( UNIX ) + cotire( world ) target_link_libraries( world PUBLIC stdc++fs ) else() target_link_libraries( world PUBLIC mysql )