X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=710cfbcd083b4d5632162acdf825592792233313;hb=7fdaa5c9df2e632685ef2d8d0177ac22b7145a6f;hp=e36aeaa2cc1dc9cb08e0cd923d91b1a9791b14a3;hpb=283fdb2c49e5efa1d497d8c3e6f624f86d008ff8;p=quassel.git diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index e36aeaa2..710cfbcd 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -91,8 +91,15 @@ if(APPLE) endif(APPLE) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") + set(FIND_LIBDL TRUE) +endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") +if(CMAKE_HOST_SYSTEM_NAME STREQUAL "kFreeBSD") + set(FIND_LIBDL TRUE) +endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "kFreeBSD") + +if(FIND_LIBDL) find_library(libdl dl) if(NOT libdl MATCHES "NOTFOUND") target_link_libraries(mod_common ${libdl}) endif(NOT libdl MATCHES "NOTFOUND") -endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") +endif(FIND_LIBDL)