X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=0e3e2a1cb4e1dee8679537913134603e0260ed6b;hp=e36aeaa2cc1dc9cb08e0cd923d91b1a9791b14a3;hb=d20a7db77425fab0c44e5bf307ba0061ddaf9faf;hpb=283fdb2c49e5efa1d497d8c3e6f624f86d008ff8 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index e36aeaa2..0e3e2a1c 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -90,9 +90,4 @@ if(APPLE) target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation") endif(APPLE) -if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") - 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") +target_link_libraries(mod_common ${CMAKE_DL_LIBS})