Fixed FreeBSD build #65
This commit is contained in:
parent
0a7862dd39
commit
3b5278323c
1 changed files with 8 additions and 6 deletions
|
@ -90,11 +90,13 @@ else()
|
||||||
src/Platform_unix.cpp
|
src/Platform_unix.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(EXTRA_LIBS pthread rt dl)
|
set(EXTRA_LIBS pthread rt)
|
||||||
endif()
|
|
||||||
|
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
set(EXTRA_LIBS ${EXTRA_LIBS} kvm)
|
||||||
set(EXTRA_LIBS ${EXTRA_LIBS} kvm)
|
else()
|
||||||
|
set(EXTRA_LIBS ${EXTRA_LIBS} dl)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
@ -251,4 +253,4 @@ if (WITH_CC_SERVER AND MHD_FOUND)
|
||||||
set_target_properties(xmrigCCServer PROPERTIES COMPILE_FLAGS "-DXMRIG_CC_SERVER ${SHARED_FLAGS}")
|
set_target_properties(xmrigCCServer PROPERTIES COMPILE_FLAGS "-DXMRIG_CC_SERVER ${SHARED_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(test EXCLUDE_FROM_ALL)
|
add_subdirectory(test EXCLUDE_FROM_ALL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue