libobs: Link against compat sysinfo on FreeBSD

Link against the compatibility library that provides sysinfo on FreeBSD.
master
fryshorts 2015-05-03 15:45:15 +02:00
parent bd2a29ec70
commit 7a33f27c72
1 changed files with 9 additions and 0 deletions

View File

@ -77,6 +77,15 @@ elseif(UNIX)
util/threading-posix.c
util/pipe-posix.c
util/platform-nix.c)
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
# use the sysinfo compatibility library on bsd
find_package(Libsysinfo REQUIRED)
include_directories(${SYSINFO_INCLUDE_DIRS})
set(libobs_PLATFORM_DEPS
${libobs_PLATFORM_DEPS}
${SYSINFO_LIBRARIES})
endif()
endif()
if(MSVC)