diff options
-rw-r--r-- | ConfigureChecks.cmake | 6 |
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") |