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:
parent
726c122bab
commit
241d066bf3
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue