summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-16 03:30:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-16 03:30:17 +0200
commitbb664a1e794860fe86c2bca6d8e92d78fade1dd8 (patch)
tree7246d8e5c5c327ed96394eede707f208db3c97ce
parent5bb3c6039c798e4e4c903b798cd9b8988d5b6bb9 (diff)
cmake: fix makefile dependencies
-rw-r--r--cmake/opentrack-boilerplate.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 3c5bd90a..4c056c3e 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -112,6 +112,7 @@ endfunction()
function(otr_i18n_for_target_directory n)
foreach(i ${opentrack-all-translations})
set(t "${CMAKE_CURRENT_SOURCE_DIR}/lang/${i}.ts")
+ file(RELATIVE_PATH t "${CMAKE_SOURCE_DIR}" "${t}")
add_custom_command(OUTPUT "${t}"
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/lang"
COMMAND "${Qt5_DIR}/../../../bin/lupdate" -silent -recursive -no-obsolete -locations relative . -ts "${t}"