diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-10 10:45:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-14 19:19:59 +0200 |
commit | 07f16d4ff648fee65cb3f7aaf313e9616179e9d0 (patch) | |
tree | d831af285081d56267b00d2cbce38c1628765fa4 /cmake/opentrack-install.cmake | |
parent | 70fa0b3f7e1ec4581e30127785fb6d59b89ec704 (diff) |
cmake: get lupdate/lrelease pathnames
cf. #669
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r-- | cmake/opentrack-install.cmake | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 876fbfb5..46649820 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -65,17 +65,13 @@ function(merge_translations) endif() endforeach() - if (LINUX) - set(LRELEASE_BIN "${Qt5_DIR}/../../../../bin/lrelease") - else() - set(LRELEASE_BIN "${Qt5_DIR}/../../../bin/lrelease") - endif() + get_property(lrelease-binary TARGET "${Qt5_LRELEASE_EXECUTABLE}" PROPERTY IMPORTED_LOCATION) if(NOT ".${ts-files_}" STREQUAL ".") set(qm-output "${CMAKE_CURRENT_BINARY_DIR}/${i}.qm") list(APPEND all-qm-files "${qm-output}") add_custom_command(OUTPUT "${qm-output}" - COMMAND ${LRELEASE_BIN} -nounfinished -silent ${ts-files_} -qm "${qm-output}" + COMMAND "${lrelease-binary}" -nounfinished -silent ${ts-files_} -qm "${qm-output}" DEPENDS ${ts-files} COMMENT "Running lrelease for ${i}") set(lang-target "i18n-lang-${i}") |