summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-26 21:10:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-26 21:10:42 +0200
commitdb70995366e465b002cbb7611e19c1f8f012203a (patch)
tree2667814b933d67e0cf0bf115fb9496e685accb6d /cmake
parenta0f472795e19c40fb6fe8d8bb8addc218a5e823d (diff)
cmake/i18n: shut up warnings due to static lib
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-i18n.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index 7939049b..c3aee3d2 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -66,6 +66,13 @@ function(otr_merge_translations)
set(qm-output "${CMAKE_CURRENT_BINARY_DIR}/${i}.qm")
list(APPEND all-qm-files "${qm-output}")
+ # whines about duplicate messages since tracker-pt-base is static
+ if(WIN32)
+ set(to-null "2>NUL")
+ else()
+ set(to-null "2>/dev/null")
+ endif()
+
add_custom_command(OUTPUT "${qm-output}"
COMMAND "${lrelease-binary}"
-nounfinished
@@ -73,6 +80,7 @@ function(otr_merge_translations)
-verbose
${ts-files}
-qm "${qm-output}"
+ ${to-null}
DEPENDS ${all-ts-targets} ${ts-files}
COMMENT "Running lrelease for ${i}")