FreeBSD build

This commit is contained in:
SChernykh
2022-04-05 19:05:15 +02:00
parent a073923a82
commit 32533e3c96
3 changed files with 24 additions and 8 deletions
+5 -1
View File
@@ -97,6 +97,8 @@ include_directories(external/src/robin-hood-hashing/src/include)
if (WIN32)
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi)
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(LIBS ${LIBS} pthread)
elseif (NOT APPLE)
set(LIBS ${LIBS} pthread gss dl)
endif()
@@ -140,7 +142,9 @@ if (STATIC_BINARY)
set(STATIC_LIBS randomx)
endif()
if (NOT APPLE)
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(STATIC_LIBS ${STATIC_LIBS} pthread)
elseif (NOT APPLE)
set(STATIC_LIBS ${STATIC_LIBS} pthread dl)
endif()