diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-14 14:24:29 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-14 14:25:51 +0100 | 
| commit | 491e963a5327a73ea25a0b2814bcb3be25ee49a5 (patch) | |
| tree | 7c64bf69790c9acf110c6e71fea78a4b71f08402 | |
| parent | 098e317447a7118897e762290a296ad00ae01740 (diff) | |
cmake: disable lupdate warnings
| -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..b5f908b6 100644 --- a/cmake/opentrack-i18n.cmake +++ b/cmake/opentrack-i18n.cmake @@ -30,6 +30,13 @@ function(otr_i18n_for_target_directory n)          endif()      endforeach() +    # 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 "${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}"  | 
