summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-23 00:56:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-23 00:56:43 +0200
commitc4e896c85279109cf9118e9087717e71d3ff97cc (patch)
treef66e24c6e438b891dc7f580f7cbe8e7ec063355b
parent995c734f5cbd0ce52c3e23e46a17d31a11018eaa (diff)
cmake/i18n: add i18n dependency for targets
Hopefully helps with differing build tools.
-rw-r--r--cmake/opentrack-i18n.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index e1c86a39..7939049b 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -30,6 +30,7 @@ function(otr_i18n_for_target_directory n)
set(target-name "i18n-lang-${i}-module-${n}")
list(APPEND target-names "${target-name}")
add_custom_target(${target-name} DEPENDS "${t2}" "${t}" COMMENT "Updating translation strings for ${n}")
+ add_dependencies("opentrack-${n}" "${target-name}")
set_property(GLOBAL APPEND PROPERTY "opentrack-ts-files-${i}" "${t2}")
set_property(GLOBAL APPEND PROPERTY "opentrack-ts-module-${n}" "${target-name}")
endforeach()