Mke webkit and qt6 combination raise an explicit error instead

of silently dusabling webkit
This commit is contained in:
Nyall Dawson 2023-12-15 09:32:51 +10:00
parent 4ceceea94a
commit 705f863f13

View File

@ -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()