From 7a33f27c7221758edb61e2427cde0bcb6a6dc963 Mon Sep 17 00:00:00 2001 From: fryshorts Date: Sun, 3 May 2015 15:45:15 +0200 Subject: [PATCH] libobs: Link against compat sysinfo on FreeBSD Link against the compatibility library that provides sysinfo on FreeBSD. --- libobs/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt index cd8131b8c..99817f758 100644 --- a/libobs/CMakeLists.txt +++ b/libobs/CMakeLists.txt @@ -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)