summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-02-13 09:15:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-02-13 09:15:19 +0100
commit00166aa8fc517d7bdc19506d31e233813504330b (patch)
tree285486a85ff6aa5e020c80e79ea521a2a6ce284f /cmake/opentrack-boilerplate.cmake
parenta666f0a375b5d826ce8cc275097e73f0ee18fd94 (diff)
cmake/i18n: workaround msbuild dependency breakage
Visual Studio runs "lrelease" targets without their "lupdate" dependencies. Add a crude workaround. Spotted by: @cpuwolf Issue: #748
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake5
1 files changed, 5 insertions, 0 deletions
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}")