summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-05 04:46:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 04:46:00 +0200
commita17f3168cc68574369f1b669fe1b4118e4843525 (patch)
tree960a1802c775384dd54224705715f79522ed616a /cmake
parent56b3ad65c3842aee1e2ae2b257abe7ed8d09c7c1 (diff)
fir Linux build
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-i18n.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index 64c86f8f..19589971 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -2,6 +2,7 @@ function(otr_i18n_for_target_directory n)
set(k "opentrack-${n}")
get_property(lupdate-binary TARGET "${Qt5_LUPDATE_EXECUTABLE}" PROPERTY IMPORTED_LOCATION)
+ set(target-names "")
foreach(i ${opentrack_all-translations})
set(t "${CMAKE_CURRENT_SOURCE_DIR}/lang/${i}.ts")
@@ -24,10 +25,12 @@ function(otr_i18n_for_target_directory n)
COMMENT "Running lupdate for ${n}/${i}")
set_property(SOURCE ${input} PROPERTY GENERATED TRUE)
set(target-name "i18n-lang-${i}-module-${n}")
- add_custom_target(${target-name} DEPENDS "${t2}" "${t}")
+ list(APPEND target-names "${target-name}")
+ add_custom_target(${target-name} DEPENDS "${t2}" "${t}" COMMENT "Translation strings for ${n}")
set_property(GLOBAL APPEND PROPERTY "opentrack-ts-files-${i}" "${t2}")
set_property(GLOBAL APPEND PROPERTY "opentrack-ts-module-${n}" "${target-name}")
endforeach()
+ add_custom_target("i18n-module-${n}" DEPENDS ${target-names})
endfunction()
function(otr_merge_translations)