summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-15 05:29:10 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-15 05:29:10 +0800
commita54193028f17fdb076ac6c5ca2ede88592600332 (patch)
tree2842a157d7a1be47deb723ac24ac22e4cd1a4a7d
parentdc7a61ff42237af3eb57e97e1680903a318e2cd8 (diff)
downloadcompizconfig-backend-gsettings-a54193028f17fdb076ac6c5ca2ede88592600332.tar.gz
compizconfig-backend-gsettings-a54193028f17fdb076ac6c5ca2ede88592600332.tar.bz2
Make it a compile time option
-rw-r--r--CMakeLists.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fdd6bd..f372d38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,18 @@ find_package (CompizConfig REQUIRED)
include (LibCompizConfigCommon)
include (CompizGSettings)
-compizconfig_backend (gsettings PKGDEPS glib-2.0>=2.20.0 gconf-2.0>=2.31.1 gio-2.0>=2.25.0)
+set (_deps glib-2.0>=2.20.0
+ gio-2.0>=2.25.0)
+
+option (USE_GCONF "Enable legacy GNOME 2.x option integration with GConf" ON)
+
+if (USE_GCONF)
+ list (APPEND _deps gconf-2.0>=2.31.1)
+
+ add_definitions (-DUSE_GCONF)
+endif (USE_GCONF)
+
+compizconfig_backend (gsettings PKGDEPS ${_deps})
compiz_install_gsettings_schema (${CMAKE_SOURCE_DIR}/org.freedesktop.compizconfig.gschema.xml
${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas)