aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2018-01-31 15:32:46 +0100
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2018-01-31 15:49:17 +0100
commit92eb3e9767cb8afb8fb222d37b63427bb603b5d8 (patch)
tree25c0c9fccd00a3a57056737b7085286233790dd1
parent30f31c46d8caf4b58ffcd7e0032441a5474ac536 (diff)
downloadextra-cmake-modules-92eb3e9767cb8afb8fb222d37b63427bb603b5d8.tar.gz
extra-cmake-modules-92eb3e9767cb8afb8fb222d37b63427bb603b5d8.tar.bz2
Make sure to search for Qt5-based qmlplugindump
Summary: Without any hint, qmlplugindump version is whatever default is set by qtchooser. Test Plan: ecm_find_qmlmodule now works properly for e.g. kirigami. Reviewers: apol, cgiboudeaux Reviewed By: cgiboudeaux Subscribers: aacid, dfaure, cgiboudeaux, #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D9116
-rw-r--r--modules/ECMFindQMLModule.cmake.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ECMFindQMLModule.cmake.in b/modules/ECMFindQMLModule.cmake.in
index 428d60a9..8109ab8f 100644
--- a/modules/ECMFindQMLModule.cmake.in
+++ b/modules/ECMFindQMLModule.cmake.in
@@ -26,8 +26,11 @@
#=============================================================================
include(FindPackageHandleStandardArgs)
+include("${ECM_MODULE_DIR}/ECMQueryQmake.cmake")
-find_program(QMLPLUGINDUMP_PROGRAM qmlplugindump)
+query_qmake(qt_binaries_dir QT_INSTALL_BINS)
+
+find_program(QMLPLUGINDUMP_PROGRAM NAMES qmlplugindump HINTS ${qt_binaries_dir})
if(NOT QMLPLUGINDUMP_PROGRAM)
message(WARNING "Could not find qmlplugindump. It is necessary to look up qml module dependencies.")
endif()