Move OpenGL to optional component

Parts of declarative is still buildable without OpenGL

Change-Id: If76be1eaca03a4754d1d6a86c3d8fba3329bc773
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Samuli Piippo 2020-02-03 13:39:01 +02:00 committed by Leander Beernaert
parent 016ce36808
commit 49dbef650e
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ project(QtDeclarative
LANGUAGES CXX C
)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets Network OpenGL # special case
OPTIONAL_COMPONENTS Sql Concurrent Test) # special case
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets Network # special case
OPTIONAL_COMPONENTS OpenGL Sql Concurrent Test) # special case
# export QT6_ADD_QML_MODULE to this project
include(src/qml/Qt6QmlMacros.cmake)