summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-28 21:12:02 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-28 21:12:02 +0200
commit357bffb17e661ff3e293d38055b10c914e1316d9 (patch)
tree2bbeaa83baf6b60446487ce2fd679d2b618757da /ConfigureChecks.cmake
parentc6a9117d6f776b7d6d33c2d89d82c3fb1130b651 (diff)
downloadtdesdk-357bffb17e661ff3e293d38055b10c914e1316d9.tar.gz
tdesdk-357bffb17e661ff3e293d38055b10c914e1316d9.zip
Fix hardcoded link to dl library
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake13
1 files changed, 13 insertions, 0 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 )