projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f8c55c5
)
Fix building on UNIXes that don't use libdl
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 29 Nov 2009 00:25:36 +0000
(
01:25
+0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 29 Nov 2009 00:25:36 +0000
(
01:25
+0100)
src/common/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/common/CMakeLists.txt
b/src/common/CMakeLists.txt
index
9d0af6e
..
f8337cb
100644
(file)
--- a/
src/common/CMakeLists.txt
+++ b/
src/common/CMakeLists.txt
@@
-77,11
+77,9
@@
if(APPLE)
target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
endif(APPLE)
target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
endif(APPLE)
-if(CMAKE_HOST_UNIX)
- find_library(libdl dl)
- if (libdl-NOTFOUND)
- message(FATAL_ERROR "Cannot find required library: libdl")
- endif (libdl-NOTFOUND)
-
+if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
+ find_library(libdl dl)
+ if(NOT libdl MATCHES "NOTFOUND")
target_link_libraries(mod_common ${libdl})
target_link_libraries(mod_common ${libdl})
-endif(CMAKE_HOST_UNIX)
+ endif(NOT libdl MATCHES "NOTFOUND")
+endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")