Fixed FreeBSD build #65

This commit is contained in:
Ben Gräf 2018-03-14 10:12:06 +01:00 committed by GitHub
parent 0a7862dd39
commit 3b5278323c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,11 +90,13 @@ else()
src/Platform_unix.cpp
)
set(EXTRA_LIBS pthread rt dl)
endif()
set(EXTRA_LIBS pthread rt)
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(EXTRA_LIBS ${EXTRA_LIBS} kvm)
else()
set(EXTRA_LIBS ${EXTRA_LIBS} dl)
endif()
endif()
if (CMAKE_SYSTEM_NAME MATCHES "Linux")