summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-install.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r--cmake/opentrack-install.cmake8
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}")