From 5a3b55ed7c0419aa09adba38db41a258118dd580 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 8 Nov 2014 06:18:16 -0500 Subject: 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). --- Utilities/cmcurl/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v0.12