diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-19 13:50:16 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-19 13:50:16 +0100 |
commit | f6d885af59026f4e952084eac7c3e36acef1ca52 (patch) | |
tree | 7cb65c37852fd1d5e686c08e9662dd1106fb5e56 /cmake | |
parent | 166705f7789b3332ed5ea00e7b695e9b499940fc (diff) |
cmake/i18n: always run lrelease
Accidentally, either both lupdate and lrelease were run or none.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-install.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 4d6a08f2..a9ffce80 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -55,20 +55,20 @@ function(merge_translations) get_property(modules GLOBAL PROPERTY opentrack-all-modules) + set(deps "") + foreach(i ${opentrack-all-translations}) get_property(ts GLOBAL PROPERTY "opentrack-ts-${i}") set(qm-output "${CMAKE_BINARY_DIR}/${i}.qm") - set(deps "") foreach(k ${modules}) list(APPEND deps "i18n-module-${k}") endforeach() if(NOT ts STREQUAL "") - add_custom_target(i18n-lang-${i} - COMMAND "${Qt5_DIR}/../../../bin/lrelease" -nounfinished -silent ${ts} -qm "${qm-output}" - DEPENDS ${deps}) + add_custom_target(i18n-lang-${i} ALL + COMMAND "${Qt5_DIR}/../../../bin/lrelease" -nounfinished -silent ${ts} -qm "${qm-output}") list(APPEND all-deps "i18n-lang-${i}") install(FILES "${qm-output}" DESTINATION "${opentrack-i18n-pfx}" RENAME "${i}.qm" ${opentrack-perms}) else() @@ -81,6 +81,6 @@ function(merge_translations) if(SDK_REGEN_TRANSLATIONS OR maybe-force-i18n) set(maybe-all ALL) endif() - add_custom_target(i18n ${maybe-all} DEPENDS ${all-deps}) + add_custom_target(i18n ${maybe-all} DEPENDS ${all-deps} ${deps}) endfunction() |