summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-05 02:40:04 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:26:02 +0200
commite8a40e46dc3310c68ca1f29613218b8c744c8d5f (patch)
tree25fde5f3a38fa289bb3466487061f236615f54fa
parent38611604fb050c012056feca8f08ec8b55da50d9 (diff)
cmake/i18n: fix depends
Some files weren't getting rebuilt.
-rw-r--r--cmake/opentrack-i18n.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index 4416a272..64c86f8f 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -6,7 +6,7 @@ function(otr_i18n_for_target_directory n)
foreach(i ${opentrack_all-translations})
set(t "${CMAKE_CURRENT_SOURCE_DIR}/lang/${i}.ts")
set(t2 "${CMAKE_CURRENT_BINARY_DIR}/lang/${i}.ts")
- set(input ${${k}-cc} ${${k}-hh} ${${k}-ui} ${${k}-rc})
+ set(input "${${k}-all}")
add_custom_command(OUTPUT "${t2}"
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/lang"
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/lang"
@@ -24,7 +24,7 @@ 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}")
+ add_custom_target(${target-name} DEPENDS "${t2}" "${t}")
set_property(GLOBAL APPEND PROPERTY "opentrack-ts-files-${i}" "${t2}")
set_property(GLOBAL APPEND PROPERTY "opentrack-ts-module-${n}" "${target-name}")
endforeach()