aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-08-28 11:18:36 +0200
committerAndreas Schneider <asn@samba.org>2018-08-28 11:27:33 +0200
commit2bc513562c0fc0dc7c61a93bc1cf0e434227459b (patch)
tree177e7bfcdedc7a472d4283259c1cee75dc2d0631
parent6ab4060d52c72d3e5bfae4768afd4babf22f3f26 (diff)
downloadpam_wrapper-2bc513562c0fc0dc7c61a93bc1cf0e434227459b.tar.gz
pam_wrapper-2bc513562c0fc0dc7c61a93bc1cf0e434227459b.tar.xz
pam_wrapper-2bc513562c0fc0dc7c61a93bc1cf0e434227459b.zip
cmake: Don't keep CMAKE_REQUIRED_LIBRARIES around
This can cause issues with detecting features. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 2fdd296..3148c23 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -75,9 +75,10 @@ endif()
check_library_exists(${PAM_LIBRARY} openpam_set_option "" HAVE_OPENPAM)
# PAM FUNCTIONS
-set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${PAM_LIBRARY})
+set(CMAKE_REQUIRED_LIBRARIES ${PAM_LIBRARY})
check_function_exists(pam_syslog HAVE_PAM_SYSLOG)
check_function_exists(pam_vsyslog HAVE_PAM_VSYSLOG)
+unset(CMAKE_REQUIRED_LIBRARIES)
# OPTIONS
@@ -149,7 +150,6 @@ int main(void) {
check_library_exists(dl dlopen "" HAVE_LIBDL)
if (HAVE_LIBDL)
find_library(DLFCN_LIBRARY dl)
- set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${DLFCN_LIBRARY})
endif (HAVE_LIBDL)
if (OSX)
@@ -161,4 +161,4 @@ if (NOT WIN32)
test_big_endian(WORDS_BIGENDIAN)
endif (NOT WIN32)
-set(UIDWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "uidwrap required system libraries")
+set(UIDWRAP_REQUIRED_LIBRARIES ${DLFCN_LIBRARY} CACHE INTERNAL "uidwrap required system libraries")