blob: fab2b4f265406830c3d6d272cac3edfada42dde4 (
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
29
30
31
32
|
--- gtk-qt-engine/CMakeLists.txt.orig 2008-08-10 01:26:55.000000000 -0700
+++ gtk-qt-engine/CMakeLists.txt 2008-08-10 01:39:49.000000000 -0700
@@ -16,15 +16,20 @@
MESSAGE(STATUS "Found GTK include dir: ${GTK_INCLUDE_DIR}")
MESSAGE(STATUS "Found GTK library dir: ${GTK_LIB_DIR}")
-# Find Bonobo
-PKGCONFIG(libbonoboui-2.0 BONOBO_INCLUDE_DIR BONOBO_LIB_DIR BONOBO_LINK_FLAGS BONOBO_CFLAGS)
-IF (NOT BONOBO_INCLUDE_DIR)
- MESSAGE(STATUS "bonoboui not found. Some features of the theme engine will not work as intended.")
-ELSE (NOT BONOBO_INCLUDE_DIR)
- MESSAGE(STATUS "Found Bonobo include dir: ${BONOBO_INCLUDE_DIR}")
- MESSAGE(STATUS "Found Bonobo library dir: ${BONOBO_LIB_DIR}")
- SET(BONOBO_DEFINITIONS -D HAVE_BONOBO)
-ENDIF (NOT BONOBO_INCLUDE_DIR)
+OPTION(ENABLE_BONOBO "Enable gnome bonobo support" ON)
+IF (ENABLE_BONOBO)
+ # Find Bonobo
+ PKGCONFIG(libbonoboui-2.0 BONOBO_INCLUDE_DIR BONOBO_LIB_DIR BONOBO_LINK_FLAGS BONOBO_CFLAGS)
+ IF (NOT BONOBO_INCLUDE_DIR)
+ MESSAGE(FATAL_ERROR "bonoboui was not found. Ensure you have the libbonoboui development libraries installed, and libonoboui's pkgconfig files are in your pkgconfig search path.")
+ ELSE (NOT BONOBO_INCLUDE_DIR)
+ MESSAGE(STATUS "Found Bonobo include dir: ${BONOBO_INCLUDE_DIR}")
+ MESSAGE(STATUS "Found Bonobo library dir: ${BONOBO_LIB_DIR}")
+ SET(BONOBO_DEFINITIONS -D HAVE_BONOBO)
+ ENDIF (NOT BONOBO_INCLUDE_DIR)
+ELSE (ENABLE_BONOBO)
+ MESSAGE(STATUS "bonobo support disabled. Some features of the theme engine will not work as intended.")
+ENDIF (ENABLE_BONOBO)
# Find msgfmt
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
|