aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-21 21:18:54 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-21 21:18:54 +0200
commitfd3eb1cca71b46ba5fc30f75ea22fd71df376ef0 (patch)
treef1d1370929f1a24ec5ef3af40c0d7155806c78bd /data
parent11d6a5f834c725d6dad54224f4f06397e7546a1f (diff)
parent633a426ebb462e9fe0bafa01ac876b6132db0a8e (diff)
downloadayatana-indicator-notifications-fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0.tar.gz
ayatana-indicator-notifications-fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0.tar.bz2
ayatana-indicator-notifications-fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0.zip
Merge branch 'tari01-pr/use-native-cmake-gsettings-module'
Attributes GH PR #21: https://github.com/AyatanaIndicators/ayatana-indicator-notifications/pull/21
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 8e3926d..55368ed 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -2,7 +2,6 @@
## GSettings schema
##
-include (UseGSettings)
set (SCHEMA_NAME "org.ayatana.indicator.notifications.gschema.xml")
set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}")
set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in")
@@ -11,8 +10,10 @@ set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in")
set (ENV{LC_ALL} "C")
execute_process (COMMAND intltool-merge -quiet --xml-style --utf8 --no-translations "${SCHEMA_FILE_IN}" "${SCHEMA_FILE}")
-# let UseGSettings do the rest
-add_schema (${SCHEMA_FILE})
+# let GSettings do the rest
+find_package(GSettings REQUIRED)
+set(GSETTINGS_COMPILE ON)
+add_schema (${SCHEMA_NAME})
##
## Systemd Unit File