From 705f863f13fcee610cefd299eeb4ef020aa52018 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 15 Dec 2023 09:32:51 +1000 Subject: [PATCH] Mke webkit and qt6 combination raise an explicit error instead of silently dusabling webkit --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5de465bde66..36ad7dcf1da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -501,7 +501,10 @@ if(WITH_CORE) else() add_definitions(-DQT_NO_PRINTER) endif() - if (WITH_QTWEBKIT AND NOT BUILD_WITH_QT6) + if (WITH_QTWEBKIT) + if(BUILD_WITH_QT6) + message(FATAL_ERROR "Qt WebKit support cannot be enabled on Qt 6 builds") + endif() find_package(Qt5WebKit REQUIRED) find_package(Qt5WebKitWidgets REQUIRED) endif()