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 )