From 00166aa8fc517d7bdc19506d31e233813504330b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 13 Feb 2018 09:15:19 +0100 Subject: cmake/i18n: workaround msbuild dependency breakage Visual Studio runs "lrelease" targets without their "lupdate" dependencies. Add a crude workaround. Spotted by: @cpuwolf Issue: #748 --- cmake/opentrack-boilerplate.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index d08a1f6e..bea2b47a 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -217,6 +217,11 @@ function(otr_module n_) otr_compat(${n}) if(NOT arg_NO-QT) otr_i18n_for_target_directory(${n_}) + + foreach(k ${opentrack_all-translations}) + set(i18n-target "i18n-lang-${k}-module-${n_}") + add_dependencies("${n}" "${i18n-target}") + endforeach() endif() set_property(GLOBAL APPEND PROPERTY opentrack-all-modules "${n}") -- cgit v1.2.3