summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-13 23:00:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-13 23:06:34 +0100
commit83371f846f8f89f107ac14c5a8539666e71f3b42 (patch)
tree7a81dedcb83d8ae255fb69e331c3ec9e503dc6db /cmake/opentrack-boilerplate.cmake
parent0289ccf1efee228a8196daae60882f1ec223d8ff (diff)
cmake: allow run i18n target if SDK_REGEN_TRANSLATIONS is false
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index cba43409..d9b3b64d 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -221,9 +221,10 @@ function(opentrack_boilerplate n)
set(langs "")
foreach(i ${opentrack-all-translations})
set(t "${CMAKE_CURRENT_SOURCE_DIR}/lang/${i}.ts")
- if(SDK_REGEN_TRANSLATIONS OR NOT EXISTS "${t}")
- list(APPEND langs "${t}")
+ if (NOT EXISTS "${t}")
+ set_property(GLOBAL PROPERTY opentrack-force-i18n-regen TRUE)
endif()
+ list(APPEND langs "${t}")
get_property(tt GLOBAL PROPERTY "opentrack-ts-${i}")
list(APPEND tt "${t}")
set_property(GLOBAL PROPERTY "opentrack-ts-${i}" "${tt}")