Fixes for MacOS build

pull/5/head
SChernykh 2021-08-23 14:48:53 +02:00
parent df52838433
commit 4d16c77f73
1 changed files with 6 additions and 2 deletions

View File

@ -75,7 +75,7 @@ include_directories(external/src/randomx/src)
if (WIN32)
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi)
else()
elseif (NOT APPLE)
set(LIBS ${LIBS} pthread gss dl)
endif()
@ -89,7 +89,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang
find_library(ZMQ_LIBRARY NAMES libzmq libzmq.a)
find_library(UV_LIBRARY_DEBUG NAMES libuv libuv.a)
find_library(UV_LIBRARY NAMES libuv libuv.a)
set(LIBS ${LIBS} sodium)
find_library(SODIUM_LIBRARY sodium)
endif()
find_library(PGM_LIBRARY pgm)
@ -103,6 +103,10 @@ if (NORM_LIBRARY)
set(LIBS ${LIBS} ${NORM_LIBRARY})
endif()
if (SODIUM_LIBRARY)
set(LIBS ${LIBS} ${SODIUM_LIBRARY})
endif()
add_definitions(/DZMQ_STATIC)
add_executable(${CMAKE_PROJECT_NAME} ${HEADERS} ${SOURCES})