diff options
-rw-r--r-- | cmake/opentrack-install.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
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() |