From d9d6a2e8e5276775acad7da4855f69e1fdc95d24 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 8 Dec 2016 05:46:25 +0100 Subject: cmake: fix translation generation --- cmake/opentrack-install.cmake | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'cmake/opentrack-install.cmake') diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index ccbdd5ad..9fc280d6 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -62,7 +62,7 @@ function(merge_translations) set(deps "") foreach(k ${modules}) - list(APPEND deps "${k}-i18n") + list(APPEND deps "i18n-module-${k}") endforeach() add_custom_target(i18n-lang-${i} @@ -72,12 +72,6 @@ function(merge_translations) list(APPEND all-deps "i18n-lang-${i}") install(FILES "${qm-output}" DESTINATION "${opentrack-i18n-pfx}" RENAME "${i}.qm" ${opentrack-perms}) endforeach() - set(SDK_REGEN_TRANSLATIONS TRUE CACHE BOOL "Regenerate translation files on build") - if(SDK_REGEN_TRANSLATIONS) - set(param ALL) - else() - set(param "") - endif() - add_custom_target(i18n ${param} DEPENDS ${all-deps}) + add_custom_target(i18n ALL DEPENDS ${all-deps}) endfunction() -- cgit v1.2.3