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 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")