summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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()