summarylogtreecommitdiffstats
path: root/qt5-fix-linguist-cmake-macro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'qt5-fix-linguist-cmake-macro.patch')
-rw-r--r--qt5-fix-linguist-cmake-macro.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/qt5-fix-linguist-cmake-macro.patch b/qt5-fix-linguist-cmake-macro.patch
new file mode 100644
index 000000000000..b49d14018797
--- /dev/null
+++ b/qt5-fix-linguist-cmake-macro.patch
@@ -0,0 +1,25 @@
+--- src/linguist/Qt5LinguistToolsMacros.cmake.orig 2016-06-19 17:29:46.000000000 +0200
++++ src/linguist/Qt5LinguistToolsMacros.cmake 2016-07-23 00:39:31.718139700 +0200
+@@ -71,8 +71,10 @@
+
+ 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 @@
+ 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
+ )