From 5879e7f313aff6819313e68ac7ce1f03e70d9bf7 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 11 Apr 2022 15:34:23 +0200 Subject: Build QtWebEngine with any Qt version >= 6.2 Pretend to be the same version to avoid having to hack qtbase Change-Id: I537fcda3c6a6693892f0fef7d5f669b3670fa2d8 Reviewed-by: Qt CI Bot Reviewed-by: Alexandru Croitor (cherry picked from commit e618a38fc3aefbeecdd04d2217bfd23a9e55346e) Reviewed-by: Qt Cherry-pick Bot --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d38a51e2f..c04b9bf46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,14 +8,16 @@ include(ExternalProject) include(cmake/Functions.cmake) include(src/core/api/Qt6WebEngineCoreMacros.cmake) +project(QtWebEngineDummy) +find_package(Qt6 6.2 CONFIG REQUIRED COMPONENTS BuildInternals Core) + project(QtWebEngine - VERSION "${QT_REPO_MODULE_VERSION}" + VERSION ${Qt6Core_VERSION} DESCRIPTION "QtWebEngine and QtPdf modules" HOMEPAGE_URL "https://qt.io/" LANGUAGES CXX C ) -find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) find_package(Qt6 ${PROJECT_VERSION} CONFIG QUIET OPTIONAL_COMPONENTS Gui Widgets Network OpenGL Quick Qml PrintSupport WebChannel Positioning QuickControls2 Test QuickWidgets QuickTest WebSockets Designer -- cgit v1.2.3