summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-install.cmake
diff options
context:
space:
mode:
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()