Martchus
10bf32210d
This is the last version I attempted to build. Future version updates were not really made at this point.
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
From 74188cdf0f85a90bf86f251480d6a41b7ea61be2 Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Sun, 25 Sep 2016 21:44:42 +0200
|
|
Subject: [PATCH] Fix linguist macro
|
|
|
|
- Prevent CMake appending extra 'Qt5::lupdate'/'Qt5::lrelease' to
|
|
command line when invoking lupdate/lrelease
|
|
- Achieved by resolveing the IMPORTED_LOCATION manually
|
|
---
|
|
src/linguist/Qt5LinguistToolsMacros.cmake | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/linguist/Qt5LinguistToolsMacros.cmake b/src/linguist/Qt5LinguistToolsMacros.cmake
|
|
index 6013cc6e..2e797326 100644
|
|
--- a/src/linguist/Qt5LinguistToolsMacros.cmake
|
|
+++ b/src/linguist/Qt5LinguistToolsMacros.cmake
|
|
@@ -71,8 +71,10 @@ function(QT5_CREATE_TRANSLATION _qm_files)
|
|
|
|
file(WRITE ${_ts_lst_file} "${_lst_file_srcs}")
|
|
endif()
|
|
+
|
|
+ get_target_property(LUPDATE_LOC ${Qt5_LUPDATE_EXECUTABLE} IMPORTED_LOCATION)
|
|
add_custom_command(OUTPUT ${_ts_file}
|
|
- COMMAND ${Qt5_LUPDATE_EXECUTABLE}
|
|
+ COMMAND ${LUPDATE_LOC}
|
|
ARGS ${_lupdate_options} "@${_ts_lst_file}" -ts ${_ts_file}
|
|
DEPENDS ${_my_sources} ${_ts_lst_file} VERBATIM)
|
|
endforeach()
|
|
@@ -93,8 +95,9 @@ function(QT5_ADD_TRANSLATION _qm_files)
|
|
set(qm "${CMAKE_CURRENT_BINARY_DIR}/${qm}.qm")
|
|
endif()
|
|
|
|
+ get_target_property(LRELEASE_LOC ${Qt5_LRELEASE_EXECUTABLE} IMPORTED_LOCATION)
|
|
add_custom_command(OUTPUT ${qm}
|
|
- COMMAND ${Qt5_LRELEASE_EXECUTABLE}
|
|
+ COMMAND ${LRELEASE_LOC}
|
|
ARGS ${_abs_FILE} -qm ${qm}
|
|
DEPENDS ${_abs_FILE} VERBATIM
|
|
)
|
|
--
|
|
2.13.2
|
|
|