summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-06-14 03:42:08 +0200
committerSlávek Banko <[email protected]>2015-06-14 03:42:08 +0200
commit14243cc8ead795531e47954763cc8b1bec94a092 (patch)
treee8eb32bf77f79ee8b2e77d6044911b4b0e669463 /CMakeLists.txt
parentf17c618004e799eb1ae9dc35907a7b9431968ba2 (diff)
downloadtdelibs-14243cc8ead795531e47954763cc8b1bec94a092.tar.gz
tdelibs-14243cc8ead795531e47954763cc8b1bec94a092.zip
Fix detection for option TDEINIT_USE_XFT with CMake build
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19a843812..ca577fe63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -824,10 +824,17 @@ endif( WITH_ARTS )
##### check for Xft #############################
+string( REGEX REPLACE ".*;([^;]*qt-mt);.*" "\\1" TQT_MT ";${TQT_LIBRARIES};" )
+if( TQT_MT )
+ pkg_search_module( TQT_MT ${TQT_MT} )
+ tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${TQT_MT_LIBRARIES}" )
+ check_library_exists( tqt-mt XftInit "" TDEINIT_USE_XFT )
+ tde_restore( CMAKE_REQUIRED_LIBRARIES )
+endif( TQT_MT )
if( TDEINIT_USE_XFT )
pkg_search_module( XFT xft )
if( NOT XFT_FOUND )
- message(FATAL_ERROR "\nXft are required, but not found on your system" )
+ tde_message_fatal( "Xft is required, but not found on your system" )
endif( NOT XFT_FOUND )
endif( TDEINIT_USE_XFT )