diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-11 05:25:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-11 05:26:21 +0200 |
commit | e573612baa03780683d20edad74e95bdf59c5681 (patch) | |
tree | 894fcae70bd5788cce94d8e5dbde96bf5cc82ce7 /cmake/opentrack-i18n.cmake | |
parent | 8562e190d63710f77bf00b1b2cd7ccde6153eef0 (diff) |
cmake: fix build
Diffstat (limited to 'cmake/opentrack-i18n.cmake')
-rw-r--r-- | cmake/opentrack-i18n.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake index 8e8a74df..7557c642 100644 --- a/cmake/opentrack-i18n.cmake +++ b/cmake/opentrack-i18n.cmake @@ -9,8 +9,9 @@ function(otr_i18n_for_target_directory n) set(t2 "${CMAKE_CURRENT_BINARY_DIR}/lang/${i}.ts") set(input "${${k}-all}") if (NOT EXISTS "${t}") - file(READ "${CMAKE_CURRENT_LIST_DIR}/translation-stub.ts") - file(WRITE "${t}") + file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lang") + file(READ "${CMAKE_SOURCE_DIR}/cmake/translation-stub.ts" stub) + file(WRITE "${t}" "${stub}") endif() add_custom_command(OUTPUT "${t2}" COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/lang" |