aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <vkrause@kde.org>2022-01-25 16:54:38 +0100
committerVolker Krause <vkrause@kde.org>2022-01-25 16:54:38 +0100
commit9ff6f346b7e5265fb89c8e946b3ee841f6d4c305 (patch)
tree3f9af97d82a93f4cb812d23ca0d433061d0e256f
parentb25b7df554da25889f7839ac09d8051e018d1e59 (diff)
downloadextra-cmake-modules-9ff6f346b7e5265fb89c8e946b3ee841f6d4c305.tar.gz
extra-cmake-modules-9ff6f346b7e5265fb89c8e946b3ee841f6d4c305.tar.bz2
Fix ECMFindQmlModule unit test with Qt6
Finding Qt6 tools without also finding any library component only works in the COMPONENT form, see also MR !233. Fixes issue #7
-rw-r--r--modules/ECMFindQmlModule.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ECMFindQmlModule.cmake.in b/modules/ECMFindQmlModule.cmake.in
index 7cd737b2..6c054bf0 100644
--- a/modules/ECMFindQmlModule.cmake.in
+++ b/modules/ECMFindQmlModule.cmake.in
@@ -12,7 +12,7 @@ if (QT_MAJOR_VERSION EQUAL "5")
query_qmake(qt_binaries_dir QT_HOST_BINS)
find_program(QMLPLUGINDUMP_PROGRAM NAMES qmlplugindump HINTS ${qt_binaries_dir})
elseif (QT_MAJOR_VERSION EQUAL "6")
- find_package(Qt6QmlTools REQUIRED)
+ find_package(Qt6 COMPONENTS QmlTools REQUIRED)
get_target_property(QMLPLUGINDUMP_PROGRAM Qt6::qmlplugindump LOCATION)
endif()