diff options
author | Inho Lee <inho.lee@qt.io> | 2024-03-22 10:09:27 +0100 |
---|---|---|
committer | Inho Lee <inho.lee@qt.io> | 2024-03-22 12:33:06 +0100 |
commit | 7ad64d431a2096828eae1a5001ab4482bbea4121 (patch) | |
tree | bfc1112370bbfe660967668668703b3a5c50859b | |
parent | 7f97bab45f62899d1fd457cdf91c40aef3741d27 (diff) |
Make Qt::Gui as a required module
A module Qt::Gui should not be an optional
Fixes: QTBUG-123489
Pick-to: 6.6 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>
-rw-r--r-- | CMakeLists.txt | 6 |
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() |