summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-04-05 19:13:40 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-04-05 19:21:52 +0200
commit04f07f87c29f9456b89ca1547d4cb98af32282e0 (patch)
treea39593d294bf1b0bf9397b2fa4f61a86d1c531be
parent799c91ef96c736e07b3dc6579290b5f0450cd2b5 (diff)
downloadtdelibs-04f07f87c29f9456b89ca1547d4cb98af32282e0.tar.gz
tdelibs-04f07f87c29f9456b89ca1547d4cb98af32282e0.zip
Fix xext configure check for CMake build
This resolves Bug 2410 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit c80f418abf9c3061b0fb7759a1e560a0ab1243fe)
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f43dcb746..8916b74e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -690,6 +690,7 @@ else( XRENDER_FOUND)
message(FATAL_ERROR "\nxrender support is required, but not found on your system" )
endif( XRENDER_FOUND )
+
##### check for xcomposite #########################
if( WITH_XCOMPOSITE )
@@ -699,13 +700,18 @@ if( WITH_XCOMPOSITE )
else( WITH_XCOMPOSITE )
tde_message_fatal( "xcomposite support was requested, but xcomposite was not found on your system" )
endif( XCOMPOSITE_FOUND )
+endif( WITH_XCOMPOSITE )
+
- # xext (tderandr, tdestyles/keramik, tdeui)
+##### check for xext ###############################
+
+if( HAVE_XRENDER OR WITH_XCOMPOSITE OR WITH_XRANDR OR HAVE_X11_EXTENSIONS_SHAPE_H )
+ # xext (tdecore, tdeui, tderandr, tdestyles/keramik)
pkg_search_module( XEXT xext )
if( NOT XEXT_FOUND )
- tde_message_fatal( "xext is required for xcomposite support, but was not found on your system" )
+ tde_message_fatal( "xext is required, but was not found on your system" )
endif( )
-endif( WITH_XCOMPOSITE )
+endif( HAVE_XRENDER OR WITH_XCOMPOSITE OR WITH_XRANDR OR HAVE_X11_EXTENSIONS_SHAPE_H )
##### check for libxml-2.0 ######################