CMake: Fix no-widgets build

Task-number: QTBUG-86053
Change-Id: If58d5b69ed58ae1aa3d50737683e682d70c26c23
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Alexandru Croitor 2020-10-20 15:52:52 +02:00
parent 06ad243417
commit 8ba6cf600e
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ project(QtDeclarative # special case
set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE)
# special case end
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets Network # special case
OPTIONAL_COMPONENTS OpenGL OpenGLWidgets Sql Concurrent Test) # special case
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Network Widgets OpenGL OpenGLWidgets Sql Concurrent Test) # special case
# special case begin
# export QT6_ADD_QML_MODULE to this project