summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-install.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-08 05:46:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-08 05:46:25 +0100
commitd9d6a2e8e5276775acad7da4855f69e1fdc95d24 (patch)
tree053c1d87a9b7b0ca35b7a3f017f3d75347693092 /cmake/opentrack-install.cmake
parentcdcb32474a204074686654cfa824d8a82533dabf (diff)
cmake: fix translation generation
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r--cmake/opentrack-install.cmake10
1 files changed, 2 insertions, 8 deletions
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()