diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-27 12:47:21 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-27 20:14:33 +0900 |
commit | bca485775106d1019eff498a79941bc3db6212fc (patch) | |
tree | 2e81e6f93c51447a16c098dfeea09aefe6806f17 | |
parent | 400687a32fca2e9b9238fd0789499ae9e3cfc8c8 (diff) | |
download | akode-bca485775106d1019eff498a79941bc3db6212fc.tar.gz akode-bca485775106d1019eff498a79941bc3db6212fc.zip |
Replace dl linking with cmake-based variabler14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 381358f3fcd9cf9dc5dca4976cfce94f23823a2f)
-rw-r--r-- | ConfigureChecks.cmake | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 980b744..2830be9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -39,15 +39,7 @@ if( WITH_LIBLTDL ) else( WITH_LIBLTDL ) # check libdl - set( AKODE_LIBDL dl ) - check_library_exists( ${AKODE_LIBDL} dlopen /lib HAVE_LIBDL ) - if( NOT HAVE_LIBDL ) - unset( AKODE_LIBDL ) - check_function_exists( dlopen HAVE_DLOPEN ) - if( NOT HAVE_DLOPEN ) - tde_message_fatal( "libdl are required, but not found on your system" ) - endif( NOT HAVE_DLOPEN ) - endif( NOT HAVE_LIBDL ) + set( AKODE_LIBDL ${CMAKE_DL_LIBS} ) endif( WITH_LIBLTDL ) |