From e8a40e46dc3310c68ca1f29613218b8c744c8d5f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 5 Apr 2018 02:40:04 +0200 Subject: cmake/i18n: fix depends Some files weren't getting rebuilt. --- cmake/opentrack-i18n.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake') 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() -- cgit v1.2.3