code: fixes for macos cmake
parent
e0f99907c1
commit
6345eb5fa6
|
@ -46,6 +46,9 @@ 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)
|
||||||
|
|
|
@ -18,6 +18,8 @@ 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