From d340c4cf6b1d2ba2d73bc391a1b0f3793407f9e1 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Thu, 21 Oct 2021 12:37:54 +0200 Subject: data/CMakeLists.txt: Use intltool_merge_translations instead of execute_process --- data/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index c76da5f..24ac4c2 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -9,8 +9,9 @@ set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}") # generate the .xml.in file so cmake constants are included configure_file(${SCHEMA_FILE_IN_IN} ${SCHEMA_FILE_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 GSettings do the rest find_package(GSettings REQUIRED) -- cgit v1.2.3