summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-10 15:26:33 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-10 15:26:33 (GMT)
commit9345da20f3056811ffa0fd3cd69e69c9ddb6814b (patch)
treeecfcb270649e69d59d07d99123aa9031b82e640f /Source/kwsys/CMakeLists.txt
parentae7fdcf6a944be23ca31ccbd5602caaacbfb42aa (diff)
downloadCMake-9345da20f3056811ffa0fd3cd69e69c9ddb6814b.zip
CMake-9345da20f3056811ffa0fd3cd69e69c9ddb6814b.tar.gz
CMake-9345da20f3056811ffa0fd3cd69e69c9ddb6814b.tar.bz2
ENH: use CMAKE_DL_LIBS and not dl directly as it does not always exist
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index f1ee84d..1008792 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -516,9 +516,9 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
# If kwsys contains the DynamicLoader, need extra library
IF(KWSYS_USE_DynamicLoader)
ADD_LIBRARY(testDynload SHARED testDynload.c)
- IF(UNIX AND NOT CYGWIN)
- TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} dl)
- ENDIF(UNIX AND NOT CYGWIN)
+ IF(UNIX)
+ TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ${CMAKE_DL_LIBS})
+ ENDIF(UNIX)
ENDIF(KWSYS_USE_DynamicLoader)
# Apply user-defined target properties to the library.