diff options
-rw-r--r-- | ConfigureChecks.cmake | 13 | ||||
-rw-r--r-- | kstartperf/CMakeLists.txt | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 92dc5052..98279eb6 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -27,3 +27,16 @@ endif( ) find_package( TQt ) find_package( TQtQUI ) find_package( TDE ) + + +##### 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 ) diff --git a/kstartperf/CMakeLists.txt b/kstartperf/CMakeLists.txt index a9eddb1b..049eb880 100644 --- a/kstartperf/CMakeLists.txt +++ b/kstartperf/CMakeLists.txt @@ -24,7 +24,7 @@ link_directories( tde_add_library( kstartperf SHARED AUTOMOC SOURCES libkstartperf.c VERSION 1.0.0 - LINK dl + LINK ${DL_LIBRARIES} DESTINATION ${LIB_INSTALL_DIR} ) |