code: fixes for macos cmake
parent
e0f99907c1
commit
6345eb5fa6
|
@ -44,9 +44,12 @@ target_link_libraries(eco2d-client raylib client-common)
|
||||||
target_link_libraries(eco2d-cli client-common)
|
target_link_libraries(eco2d-cli client-common)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_link_libraries(eco2d-cli winmm)
|
target_link_libraries(eco2d-cli winmm)
|
||||||
target_link_libraries(eco2d-client winmm)
|
target_link_libraries(eco2d-client winmm)
|
||||||
|
elseif (APPLE)
|
||||||
|
target_link_libraries(eco2d-cli pthread m dl)
|
||||||
|
target_link_libraries(eco2d-client pthread m dl)
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
target_link_libraries(eco2d-cli pthread m dl atomic)
|
target_link_libraries(eco2d-cli pthread m dl atomic)
|
||||||
target_link_libraries(eco2d-client pthread m dl atomic)
|
target_link_libraries(eco2d-client pthread m dl atomic)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -17,7 +17,9 @@ add_executable(eco2d-server
|
||||||
include_directories(eco2d-server header)
|
include_directories(eco2d-server header)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_link_libraries(eco2d-server winmm)
|
target_link_libraries(eco2d-server winmm)
|
||||||
|
elseif (APPLE)
|
||||||
|
target_link_libraries(eco2d-server pthread m dl)
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
target_link_libraries(eco2d-server pthread m dl atomic)
|
target_link_libraries(eco2d-server pthread m dl atomic)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue