summaryrefslogtreecommitdiffstats
path: root/trinity-base/kdelibs/files/kdelibs-3.5.13.1-make-xcomposite-optional.patch
blob: 1b7e1c91a04ead24aca8d21373e997787ca4def4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- CMakeLists.txt.orig	2012-10-25 09:20:57.773606598 +0400
+++ CMakeLists.txt	2012-10-26 07:18:14.793762688 +0400
@@ -81,5 +81,6 @@
 OPTION( WITH_ASPELL "Enable aspell support" OFF )
 OPTION( WITH_HSPELL "Enable hspell support" OFF )
+OPTION( WITH_XCOMPOSITE "Enable xcomposite support" ${WITH_ALL_OPTIONS} )
 
 
 ##### set PKG_CONFIG_PATH #######################
@@ -564,10 +565,14 @@
 
 ##### 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()
+    message(FATAL_ERROR "\nxcomposite support was requested, but xcomposite was not found on your system" )
+  endif( XCOMPOSITE_FOUND )
+endif( WITH_XCOMPOSITE )
 
 ##### check for libxml-2.0 ######################