diff options
author | Michele Calgaro <[email protected]> | 2024-12-27 12:47:21 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-27 18:37:39 +0900 |
commit | 381358f3fcd9cf9dc5dca4976cfce94f23823a2f (patch) | |
tree | 2e81e6f93c51447a16c098dfeea09aefe6806f17 | |
parent | 9218599ddadb97c3f6b933f7d1a9726cc8da5711 (diff) | |
download | akode-381358f3fcd9cf9dc5dca4976cfce94f23823a2f.tar.gz akode-381358f3fcd9cf9dc5dca4976cfce94f23823a2f.zip |
Replace dl linking with cmake-based variable
Signed-off-by: Michele Calgaro <[email protected]>
-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 ) |