1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

Only use precompiled headers under linux

This commit is contained in:
mordred 2018-12-13 13:01:41 +01:00
parent 726c122bab
commit 241d066bf3
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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 )