summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-11-26 21:19:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-11-26 21:19:27 (GMT)
commit7c39cdc80d3245046aa888d8d0cfa61b75547ce1 (patch)
tree0a2455829f79d3468b171013519972e9b690a601 /Utilities
parent306d517e8266d4182c17b6d2c812979bceacd542 (diff)
downloadCMake-7c39cdc80d3245046aa888d8d0cfa61b75547ce1.zip
CMake-7c39cdc80d3245046aa888d8d0cfa61b75547ce1.tar.gz
CMake-7c39cdc80d3245046aa888d8d0cfa61b75547ce1.tar.bz2
ENH: fix warning on HPUX
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index bd5ddfb..a04b08c 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -153,7 +153,10 @@ MACRO(CHECK_LIBRARY_EXISTS_CONCAT LIBRARY SYMBOL VARIABLE)
ENDMACRO(CHECK_LIBRARY_EXISTS_CONCAT)
# Check for all needed libraries
-CHECK_LIBRARY_EXISTS_CONCAT("dl" dlopen HAVE_LIBDL)
+# use the cmake defined dl libs as dl is should not be used
+# on HPUX, but rather dld this avoids a warning
+SET(CURL_LIBS ${CURL_LIBS} ${CMAKE_DL_LIBS})
+#CHECK_LIBRARY_EXISTS_CONCAT("dl" dlopen HAVE_LIBDL)
#CHECK_LIBRARY_EXISTS_CONCAT("ucb" gethostname HAVE_LIBUCB)
CHECK_LIBRARY_EXISTS_CONCAT("socket" connect HAVE_LIBSOCKET)
CHECK_LIBRARY_EXISTS("c" gethostbyname "" NOT_NEED_LIBNSL)