diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-18 20:40:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-18 20:40:21 +0100 |
commit | f6ddd7f9f44a4deccdb3d441aa00e37818eb5d3b (patch) | |
tree | 7e375040b7a841097f24d86d0ef1e16b095d4b68 /cmake | |
parent | 4cbfff8a4a9de868d0d24281acfb661180504e07 (diff) |
cmake/i18n: shut up lupdate warnings
Diffstat (limited to '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 1d471fb2..7a47ad10 100644 --- a/cmake/opentrack-i18n.cmake +++ b/cmake/opentrack-i18n.cmake @@ -30,6 +30,13 @@ function(otr_i18n_for_target_directory n) endif() endforeach() + # all sorts of problems + if(WIN32) + set(to-null "2>NUL") + else() + set(to-null "2>/dev/null") + endif() + add_custom_command(OUTPUT "${stamp}" COMMAND "${lupdate-binary}" -I "${CMAKE_SOURCE_DIR}" @@ -39,6 +46,7 @@ function(otr_i18n_for_target_directory n) -locations none . -ts ${ts-files} + ${to-null} COMMAND "${CMAKE_COMMAND}" -E touch "${stamp}" DEPENDS ${${k}-cc} ${${k}-hh} ${${k}-uih} ${${k}-moc} COMMENT "Running lupdate for ${n}" |