aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-08-12 18:32:43 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-08-12 19:06:32 +0200
commit0ba45442f3f1102af73ec2666e4e5c24ed516331 (patch)
tree016c4425b60be3d9b4b1b2054612e5b0835cd581
parentb348cac075ad4ad39cb941a325671909a9ce2692 (diff)
CMake: Don't find_package(Qt6QmlTools) directly for cross-builds
It will fail when cross compiling to a platform that has a different size value of CMAKE_SIZEOF_VOID_P than the host one. Instead call find_package() on the base package (Qml in this case) and it will look for QmlTools itself in a special way that that resets the value of CMAKE_SIZEOF_VOID_P, thus ensuring the package is found. Fixes: QTBUG-86012 Change-Id: Ibf7f06b8cfea0ccde10b7ca8429ef8ae598f93f2 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 05dcd0a7..2c31a50f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@ project(QtQuickControls2
LANGUAGES CXX C
)
-find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets Network Qml Quick QmlTools # special case
+find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets Network Qml Quick # special case
OPTIONAL_COMPONENTS QuickTest # special case
)
if(NOT TARGET Qt::Quick)