summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-14 03:42:08 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:23:01 +0100
commitec47e62bfc82144aa0dfb7b5ac0831db7e919b9e (patch)
tree41f10522ff476d442326f8311717b004c15b76b4
parent94ea0653b48e311706e3ce65cbb4837829e4084b (diff)
downloadtdelibs-ec47e62bfc82144aa0dfb7b5ac0831db7e919b9e.tar.gz
tdelibs-ec47e62bfc82144aa0dfb7b5ac0831db7e919b9e.zip
Fix detection for option TDEINIT_USE_XFT with CMake build
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 14243cc8ead795531e47954763cc8b1bec94a092)
-rw-r--r--CMakeLists.txt9
-rw-r--r--kinit/CMakeLists.txt2
2 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ca140286..b65206dd4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -787,10 +787,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 "" KDEINIT_USE_XFT )
+ tde_restore( CMAKE_REQUIRED_LIBRARIES )
+endif( TQT_MT )
if( KDEINIT_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( KDEINIT_USE_XFT )
diff --git a/kinit/CMakeLists.txt b/kinit/CMakeLists.txt
index c21282182..16acb7678 100644
--- a/kinit/CMakeLists.txt
+++ b/kinit/CMakeLists.txt
@@ -40,7 +40,7 @@ set( ${target}_SRCS
tde_add_executable( ${target}
SOURCES ${${target}_SRCS}
- LINK ltdlc-static kparts-shared
+ LINK ltdlc-static kparts-shared ${XFT_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)