diff options
author | Dmitry <Dmitrorus@gmail.com> | 2017-08-04 23:57:01 +0700 |
---|---|---|
committer | Dmitry <Dmitrorus@gmail.com> | 2017-08-04 23:57:01 +0700 |
commit | c5394119e79992cdc8a4943e519ae99b2473367a (patch) | |
tree | 2e26ec4780399cadd416c73f924b8a8ea677da44 /cmake/opentrack-install.cmake | |
parent | 7612e2d171e5b433e7fd206c850baeb636920045 (diff) |
fixed qt binaries location for linux
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r-- | cmake/opentrack-install.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 0530c5d9..876fbfb5 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -65,11 +65,17 @@ function(merge_translations) endif() endforeach() + if (LINUX) + set(LRELEASE_BIN "${Qt5_DIR}/../../../../bin/lrelease") + else() + set(LRELEASE_BIN "${Qt5_DIR}/../../../bin/lrelease") + endif() + 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 "${Qt5_DIR}/../../../bin/lrelease" -nounfinished -silent ${ts-files_} -qm "${qm-output}" + COMMAND ${LRELEASE_BIN} -nounfinished -silent ${ts-files_} -qm "${qm-output}" DEPENDS ${ts-files} COMMENT "Running lrelease for ${i}") set(lang-target "i18n-lang-${i}") |