diff options
author | Brad King <brad.king@kitware.com> | 2014-11-08 11:18:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-10 15:00:45 (GMT) |
commit | 5a3b55ed7c0419aa09adba38db41a258118dd580 (patch) | |
tree | 6b42568f0c4f9a4ebd94a822290de5880463d853 /Utilities/cmcurl/CMakeLists.txt | |
parent | 59242702739b92f1a152e2a2bb32772638fdf5be (diff) | |
download | CMake-5a3b55ed7c0419aa09adba38db41a258118dd580.zip CMake-5a3b55ed7c0419aa09adba38db41a258118dd580.tar.gz CMake-5a3b55ed7c0419aa09adba38db41a258118dd580.tar.bz2 |
curl: Do not use 'dl' on HP-UX
Re-apply the logic change made by commit v2.8.0~1427 (fix warning on
HPUX, 2008-11-26).
Diffstat (limited to 'Utilities/cmcurl/CMakeLists.txt')
-rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index ca5f34f..61e6fa5 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -204,7 +204,13 @@ if(WIN32) endif(WIN32) # Check for all needed libraries +if(0) # This code not needed for building within CMake. check_library_exists_concat("dl" dlopen HAVE_LIBDL) +else() + # Use the cmake-defined dl libs as dl is should not be used + # on HPUX, but rather dld this avoids a warning + list(APPEND CURL_LIBS ${CMAKE_DL_LIBS}) +endif() check_library_exists_concat("socket" connect HAVE_LIBSOCKET) check_library_exists("c" gethostbyname "" NOT_NEED_LIBNSL) |