summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)