diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-28 21:12:02 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-28 21:16:19 +0200 |
commit | 7c73823e9f1619e471779c8f203b2774ca04fefd (patch) | |
tree | f444f6d77aa6d3510cb5487c9ad2f50e0413c8e1 /ConfigureChecks.cmake | |
parent | 81799c1cf96bfd84a38b2f444a9dafb1f7854989 (diff) | |
download | tdesdk-7c73823e9f1619e471779c8f203b2774ca04fefd.tar.gz tdesdk-7c73823e9f1619e471779c8f203b2774ca04fefd.zip |
Fix hardcoded link to dl library
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 357bffb17e661ff3e293d38055b10c914e1316d9)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 13 |
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 ) |