diff options
Diffstat (limited to 'cmake/opentrack-i18n.cmake')
-rw-r--r-- | cmake/opentrack-i18n.cmake | 8 |
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}") |