From 50d3b377880049aebfd69c4c6f956b0f8d5326dd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 23 Nov 2016 12:03:43 +0100 Subject: cmake: don't regen translations all the time by default --- cmake/opentrack-install.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 3e77e396..82a9e982 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -70,6 +70,12 @@ function(merge_translations) list(APPEND all-deps "i18n-lang-${i}") install(FILES "${qm-output}" DESTINATION "${opentrack-i18n-pfx}" RENAME "${i}.qm" ${opentrack-perms}) endforeach() - add_custom_target(i18n ALL DEPENDS ${all-deps}) + set(SDK_REGEN_TRANSLATIONS_ON_BUILD FALSE CACHE BOOL "") + if(SDK_REGEN_TRANSLATIONS_ON_BUILD) + set(param ALL) + else() + set(param "") + endif() + add_custom_target(i18n ${param} DEPENDS ${all-deps}) endfunction() -- cgit v1.2.3