summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2019-08-29 09:54:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-31 11:39:47 +0200
commit3e7769a58026702a16d116a48f20899bc1f11ee6 (patch)
treeeb18486ef8d38a9b87ac19c4389cbef85eff7c75 /CMakeLists.txt
parentc30aff4f88e55c7255cbcbf4405577e9f4bcd63e (diff)
downloadcurl-3e7769a58026702a16d116a48f20899bc1f11ee6.tar.gz
CMake: use platform dependent name for dlopen() library
Closes #4279
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index af367e522..0772d6e51 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -260,7 +260,7 @@ if(ENABLE_THREADED_RESOLVER)
endif()
# Check for all needed libraries
-check_library_exists_concat("dl" dlopen HAVE_LIBDL)
+check_library_exists_concat("${CMAKE_DL_LIBS}" dlopen HAVE_LIBDL)
check_library_exists_concat("socket" connect HAVE_LIBSOCKET)
check_library_exists("c" gethostbyname "" NOT_NEED_LIBNSL)