From 8abe35b4214a24470dd5f8c0949f67253e10374b Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Sat, 2 Oct 2021 16:11:04 +0100 Subject: ECMFindQMLModule: Use QT_HOST_BINS to find qmlplugindump When cross-compiling QT_INSTALL_BINS contains binaries for the target system that can't be used during the build. Instead use QT_HOST_BINS which contains the Qt build tools for the current system. --- modules/ECMFindQMLModule.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ECMFindQMLModule.cmake.in b/modules/ECMFindQMLModule.cmake.in index 6f01c779..4234b702 100644 --- a/modules/ECMFindQMLModule.cmake.in +++ b/modules/ECMFindQMLModule.cmake.in @@ -7,7 +7,7 @@ include(FindPackageHandleStandardArgs) include("${ECM_MODULE_DIR}/ECMQueryQmake.cmake") -query_qmake(qt_binaries_dir QT_INSTALL_BINS) +query_qmake(qt_binaries_dir QT_HOST_BINS) find_program(QMLPLUGINDUMP_PROGRAM NAMES qmlplugindump HINTS ${qt_binaries_dir}) if(NOT QMLPLUGINDUMP_PROGRAM) -- cgit v1.2.1