summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-i18n.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-14 16:17:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-14 16:17:48 +0200
commit6cf86ec53e24d16b65311454eaf64943511a2770 (patch)
tree36728fe75c72e8728a8d470782650fde1f351c9d /cmake/opentrack-i18n.cmake
parent1e8d0dd15f6eedd662e24950bd70dc76fa2f7aa6 (diff)
cmake/i18n: fix "make clean"
The Ninja generator deleted source files. I hope this change doesn't break GNU Make and msbuild.
Diffstat (limited to 'cmake/opentrack-i18n.cmake')
-rw-r--r--cmake/opentrack-i18n.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index 6811d5e9..3dd8ac9d 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -24,10 +24,9 @@ function(otr_i18n_for_target_directory n)
.
-ts "${t}"
COMMAND "${CMAKE_COMMAND}" -E copy "${t}" "${t2}"
+ DEPENDS ${input} ${t}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
- DEPENDS ${input}
COMMENT "Running lupdate for ${n}/${i}")
- set_property(SOURCE ${input} PROPERTY GENERATED TRUE)
set(target-name "i18n-lang-${i}-module-${n}")
list(APPEND target-names "${target-name}")
add_custom_target(${target-name} DEPENDS "${t2}" "${t}" COMMENT "Updating translation strings for ${n}")
@@ -72,7 +71,7 @@ function(otr_merge_translations)
-verbose
${ts-files}
-qm "${qm-output}"
- DEPENDS ${all-ts-targets}
+ DEPENDS ${all-ts-targets} ${ts-files}
COMMENT "Running lrelease for ${i}")
install(FILES "${qm-output}"