From 03cc67abd197dd250e412107836799777d79c764 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 23 Dec 2020 16:03:03 +0100 Subject: [PATCH] cmake build: Fix building external plugins with Qt6 When finding a Qt component, make sure to explicitly mention the implicit dependencies too. This is a workaround for a defect in FindQt5.cmake, which only creates alias targets and sets the IMPORTED_GLOBAL property on components that are explicitly listed in the find_package/find_dependency call. Change-Id: I98c4090ece1fa5704c3a7abeb0e8e27475a30757 Reviewed-by: Cristian Adam --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 607ff51879e..483231f905a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -41,7 +41,7 @@ list(APPEND CMAKE_MODULE_PATH \${CMAKE_CURRENT_LIST_DIR}) include(CMakeFindDependencyMacro) find_dependency(Qt5 ${IDE_QT_VERSION_MIN} - COMPONENTS Concurrent Core Network PrintSupport Qml Quick QuickWidgets Sql REQUIRED + COMPONENTS Concurrent Core Gui Widgets Core5Compat Network PrintSupport Qml Quick QuickWidgets Sql REQUIRED ) if (NOT IDE_VERSION)