summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInho Lee <inho.lee@qt.io>2024-03-22 10:09:27 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-22 12:10:54 +0000
commit312b107ae91b7e57c7cdab02b01b39e455063283 (patch)
treeedd8817e95dbcaf182028fe6d1b4bfb25cb04a16
parent63102ae3b9c0296bcb41b3764d6ba342e9c4bc20 (diff)
Make Qt::Gui as a required module6.6
A module Qt::Gui should not be an optional Fixes: QTBUG-123489 Pick-to: 6.5 Change-Id: I7f4129b37aa39e41cd4ce6dfc267fcf916f3ddbc Reviewed-by: David Redondo <qt@david-redondo.de> (cherry picked from commit 9848b60e684ba2fcddff8218d893f45166a34639) Reviewed-by: Inho Lee <inho.lee@qt.io> (cherry picked from commit 7ad64d431a2096828eae1a5001ab4482bbea4121) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6649dfccb..51fdc9e67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,10 +25,10 @@ endif()
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS
Core
+ Gui
)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS
- Gui
OpenGL
Quick
)
@@ -40,8 +40,4 @@ find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS
# return()
#endif()
# special case end
-if(NOT TARGET Qt::Gui)
- message(NOTICE "Skipping the build as the condition \"TARGET Qt::Gui\" is not met.")
- return()
-endif()
qt_build_repo()