code: fixes for macos cmake

isolation_bkp/dynres
Vladyslav Hrytsenko 2021-01-16 17:49:45 +02:00
parent e0f99907c1
commit 6345eb5fa6
2 changed files with 11 additions and 6 deletions

View File

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

View File

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