aboutsummaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-21 21:39:11 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-21 21:39:11 +0200
commit253e534ab09efbdeb340af561d3126834bb00c40 (patch)
treee3941389681aa91df34cb62cb5bc0e217343745f /data/CMakeLists.txt
parenta77ead4c4cdfa62f186c3b2549afa5611984b790 (diff)
parent2e7199ec99eb39f227f8e39c00da68330659d9ac (diff)
downloadayatana-indicator-bluetooth-253e534ab09efbdeb340af561d3126834bb00c40.tar.gz
ayatana-indicator-bluetooth-253e534ab09efbdeb340af561d3126834bb00c40.tar.bz2
ayatana-indicator-bluetooth-253e534ab09efbdeb340af561d3126834bb00c40.zip
Merge branch 'tari01-pr/use-intltool-merge-translations'
Attributes GH PR #31: https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/pull/31
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 7008c9e..3f3c84b 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -69,8 +69,9 @@ set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}")
set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in")
# generate the .xml file using intltool
+find_package(Intltool REQUIRED)
set (ENV{LC_ALL} "C")
-execute_process (COMMAND intltool-merge -quiet --xml-style --utf8 --no-translations "${SCHEMA_FILE_IN}" "${SCHEMA_FILE}")
+intltool_merge_translations("${SCHEMA_FILE_IN}" "${SCHEMA_FILE}" ALL UTF8 STYLE "xml" NO_TRANSLATIONS)
# let UseGSettings do the rest
set(GSETTINGS_COMPILE ON)