diff options
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r-- | data/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 2b8ab36..e51a2f1 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -2,7 +2,7 @@ ## GSettings schema ## -include (UseGSettings) +find_package(GSettings) set (SCHEMA_NAME "org.ayatana.indicator.power.gschema.xml") set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}") set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in") @@ -11,8 +11,9 @@ 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 +set(GSETTINGS_COMPILE ON) +add_schema (${SCHEMA_NAME}) ## ## Systemd Unit File |