From a2dca397276299377a3a926aa089436497682a5b Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 14 Jan 2013 19:22:48 +0100 Subject: [PATCH] There's no libdl on FreeBSD --- neo/CMakeLists.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 85112655..1542a6aa 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -1369,7 +1369,7 @@ else() endif() - if(UNIX) + IF("${CMAKE_SYSTEM}" MATCHES "Linux") target_link_libraries(RBDoom3BFG idlib GL @@ -1380,5 +1380,16 @@ else() ${OPENAL_LIBRARY} ) endif() - + + IF("${CMAKE_SYSTEM}" MATCHES "FreeBSD") + target_link_libraries(RBDoom3BFG + idlib + GL + pthread + rt + ${SDLx_LIBRARY} + ${OPENAL_LIBRARY} + ) + endif() + endif()