summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2013-09-25 16:14:08 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-25 16:42:28 +0200
commit6e81fa9ce19536f7b5c7de37f710a416bb31eaf3 (patch)
tree2e7201676a754d0d45d0f71280d2106c1a645167 /CMakeLists.txt
parent4626871a9d3778ff1423e8a5405def70ee8a4fba (diff)
downloadtdelibs-6e81fa9ce19536f7b5c7de37f710a416bb31eaf3.tar.gz
tdelibs-6e81fa9ce19536f7b5c7de37f710a416bb31eaf3.zip
Add new build option WITH_XCOMPOSITE
Fix build without xcomposite This resolves Bug 1289
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 487d9faaa..9bce50de8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,6 +96,7 @@ OPTION( WITH_OLD_XDG_STD "Use the pre R14.0.0 XDG standard where both TDE and KD
OPTION( WITH_LZMA "Enable support for LZMA/XZ" ${WITH_ALL_OPTIONS} )
OPTION( WITH_LIBBFD "Enable pretty backtraces with libbfd from GNU binutils" OFF )
OPTION( WITH_XRANDR "Build the tderandr library" ON )
+OPTION( WITH_XCOMPOSITE "Enable xcomposite support" ON )
OPTION( WITH_KDE4_MENU_SUFFIX "Add [KDE4] tag to KDE4 menu items" OFF )
OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} )
@@ -621,10 +622,15 @@ endif( XRENDER_FOUND )
##### check for xcomposite #########################
-pkg_search_module( XCOMPOSITE xcomposite )
-if( XCOMPOSITE_FOUND )
- set( HAVE_XCOMPOSITE 1 )
-endif( XCOMPOSITE_FOUND )
+if( WITH_XCOMPOSITE )
+ pkg_search_module( XCOMPOSITE xcomposite )
+ if( XCOMPOSITE_FOUND )
+ set( HAVE_XCOMPOSITE 1 )
+ else( WITH_XCOMPOSITE )
+ tde_message_fatal( "xcomposite support was requested, but xcomposite was not found on your system" )
+ endif( XCOMPOSITE_FOUND )
+endif( WITH_XCOMPOSITE )
+
##### check for libxml-2.0 ######################