diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-25 11:43:04 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-25 11:43:04 +0200 |
commit | 42d709065e9f83419a2545e9344a392b6df3200e (patch) | |
tree | 9f839f6c985f0d9ffd4117edfa3baac39a269985 /cmake | |
parent | c1d890fcf3056cd0e45a83130055456d492d723a (diff) |
cmake: fix make clean for i18n files
`make clean' was deleting .ts files.
Thanks to @MrCapone for diagnosing this issue.
Fixes: #677
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 0ed90867..c386f250 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -117,7 +117,8 @@ function(otr_i18n_for_target_directory n) foreach(i ${opentrack_all-translations}) set(t "${CMAKE_CURRENT_SOURCE_DIR}/lang/${i}.ts") - if(NOT opentrack_disable-i18n-update) + set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" PROPERTY CLEAN_NO_CUSTOM 1) + if(NOT opentrack_disable-i17n-update) add_custom_command(OUTPUT "${t}" COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/lang" COMMAND "${lupdate-binary}" -silent -recursive -no-obsolete -locations relative . -ts "${t}" |