From b9fe1c2f8a575d3d273b4801eecdee9fa552783d Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 10 Sep 2025 07:22:59 +1000 Subject: [PATCH] Require qt6 for PDF4Qt building (upstream requirement) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index db6d92661e3..64f9e2b260f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -598,6 +598,9 @@ if(WITH_CORE) set (WITH_PDF4QT FALSE CACHE BOOL "Determines whether the embedded PDF4Qt library should be build for PDF and HTML to QPainter conversion") if (WITH_PDF4QT) + if(NOT BUILD_WITH_QT6) + message(FATAL_ERROR "PDF4Qt requires a Qt 6 build") + endif() set(HAVE_PDF4QT TRUE) # used in qgisconfig.h message(STATUS "PDF4Qt enabled") else()