summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-23 12:03:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-23 12:03:43 +0100
commit50d3b377880049aebfd69c4c6f956b0f8d5326dd (patch)
tree72060c54a01be012f70f514cbd6c124159d440a2
parent12a6ccc57958cde90967c8fa378dc9a69c17e3d0 (diff)
cmake: don't regen translations all the time by default
-rw-r--r--cmake/opentrack-install.cmake8
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()