From f6d885af59026f4e952084eac7c3e36acef1ca52 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Feb 2017 13:50:16 +0100 Subject: cmake/i18n: always run lrelease Accidentally, either both lupdate and lrelease were run or none. --- cmake/opentrack-install.cmake | 10 +++++----- 1 file 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() -- cgit v1.2.3