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

@ -44,9 +44,12 @@ target_link_libraries(eco2d-client raylib client-common)
target_link_libraries(eco2d-cli client-common)
if (WIN32)
target_link_libraries(eco2d-cli winmm)
target_link_libraries(eco2d-client winmm)
target_link_libraries(eco2d-cli 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)
target_link_libraries(eco2d-cli pthread m dl atomic)
target_link_libraries(eco2d-client pthread m dl atomic)
target_link_libraries(eco2d-cli pthread m dl atomic)
target_link_libraries(eco2d-client pthread m dl atomic)
endif()

View File

@ -17,7 +17,9 @@ add_executable(eco2d-server
include_directories(eco2d-server header)
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)
target_link_libraries(eco2d-server pthread m dl atomic)
target_link_libraries(eco2d-server pthread m dl atomic)
endif()