mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Another attempt to fix OSX pt2. Thanks H0zen
This commit is contained in:
parent
fbc681101b
commit
32a26f44c7
1 changed files with 10 additions and 2 deletions
|
|
@ -67,11 +67,19 @@ else()
|
|||
target_link_libraries(${EXECUTABLE_NAME} ACE)
|
||||
endif()
|
||||
|
||||
target_link_libraries(${EXECUTABLE_NAME} g3dlite vmap detour recast zlib shared)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(${EXECUTABLE_NAME} rt)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set(EXECUTABLE_LINK_FLAGS "-Wl,--no-as-needed -lrt -pthread ${EXECUTABLE_LINK_FLAGS}")
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
set(EXECUTABLE_LINK_FLAGS "-Wl,--no-as-needed -ldl -pthread -lrt ${EXECUTABLE_LINK_FLAGS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(${EXECUTABLE_NAME} g3dlite vmap detour recast zlib shared)
|
||||
if(APPLE)
|
||||
set(EXECUTABLE_LINK_FLAGS "-framework CoreServices ${EXECUTABLE_LINK_FLAGS}")
|
||||
endif()
|
||||
|
||||
#Output the compiled exes to build/bin/$(Configuration)/tools directory on windows by default
|
||||
if(WIN32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue