diff options
author | Michele Calgaro <[email protected]> | 2024-12-27 13:12:50 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-27 18:34:11 +0900 |
commit | 3df12e580bf4a71991a80424b5375157f6bce3db (patch) | |
tree | 5cfb727555f3161a3829ce3e64e665806cc6d5ae /ConfigureChecks.cmake | |
parent | ab81005c219c6a8c104fc49e27f068048f59f7b1 (diff) | |
download | tdebase-3df12e580bf4a71991a80424b5375157f6bce3db.tar.gz tdebase-3df12e580bf4a71991a80424b5375157f6bce3db.zip |
Replace pthread and dl linking with cmake-based variables
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 1bed63101..8c8d102d4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -50,19 +50,6 @@ if( WITH_USBIDS ) endif( WITH_USBIDS ) -##### check for libdl ########################### - -set( DL_LIBRARIES dl ) -check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL ) -if( NOT HAVE_LIBDL ) - unset( DL_LIBRARIES ) - check_function_exists( dlopen HAVE_DLOPEN ) - if( HAVE_DLOPEN ) - set( HAVE_LIBDL 1 ) - endif( HAVE_DLOPEN ) -endif( NOT HAVE_LIBDL ) - - # stdint.h (drkonqi) if( BUILD_DRKONQI ) check_include_file( stdint.h HAVE_STDINT_H ) @@ -117,7 +104,7 @@ if( BUILD_KCHECKPASS OR BUILD_TDM ) check_include_file( "security/pam_appl.h" SECURITY_PAM_APPL_H ) endif( ) if( HAVE_PAM AND SECURITY_PAM_APPL_H ) - set( PAM_LIBRARY pam ${DL_LIBRARIES} ) + set( PAM_LIBRARY pam ${CMAKE_DL_LIBS} ) else( ) tde_message_fatal( "pam are requested, but not found on your system" ) endif( ) |