FreeBSD needs pthread

FreeBSD needs the pthread linker flag.
This commit is contained in:
Emanuel Haupt 2019-01-16 10:55:45 +01:00 committed by GitHub
parent b11e772acc
commit b58e20dde4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ else()
) )
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(EXTRA_LIBS kvm) set(EXTRA_LIBS kvm pthread)
else() else()
set(EXTRA_LIBS pthread rt dl) set(EXTRA_LIBS pthread rt dl)
endif() endif()