summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-install.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-install.cmake
parent0289ccf1efee228a8196daae60882f1ec223d8ff (diff)
cmake: allow run i18n target if SDK_REGEN_TRANSLATIONS is false
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r--cmake/opentrack-install.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake
index 56067f1b..4d6a08f2 100644
--- a/cmake/opentrack-install.cmake
+++ b/cmake/opentrack-install.cmake
@@ -76,6 +76,11 @@ function(merge_translations)
message(FATAL_ERROR "build logic error: no translations for language ${i}")
endif()
endforeach()
- add_custom_target(i18n ALL DEPENDS ${all-deps})
+ set(maybe-all "")
+ get_property(maybe-force-i18n GLOBAL PROPERTY opentrack-force-i18n-regen)
+ if(SDK_REGEN_TRANSLATIONS OR maybe-force-i18n)
+ set(maybe-all ALL)
+ endif()
+ add_custom_target(i18n ${maybe-all} DEPENDS ${all-deps})
endfunction()