summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/compat/CMakeLists.txt b/compat/CMakeLists.txt
index dc81436d..87b191cc 100644
--- a/compat/CMakeLists.txt
+++ b/compat/CMakeLists.txt
@@ -7,3 +7,18 @@ endif()
if(WIN32)
target_link_libraries(${self} strmiids)
endif()
+
+
+if(APPLE)
+ target_link_libraries(${self} proc)
+elseif(LINUX)
+ otr_pkgconfig_(has-libproc2 ${self} libproc2)
+ if(has-libproc2)
+ target_compile_definitions(${self} PUBLIC -DOTR_HAS_LIBPROC2)
+ else()
+ otr_pkgconfig_(has-libprocps ${self} libprocps)
+ if(NOT has-libprocps)
+ message(FATAL_ERROR "install libproc2 or libprocps development files")
+ endif()
+ endif()
+endif()