summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-05-12 12:57:51 +0200
committerMichal Klocek <michal.klocek@qt.io>2023-05-24 12:17:21 +0200
commit9cc2a24e4d716816b696816b4056cd55290578df (patch)
tree968c37cb949884f39d83ece3144314e62d286ba9
parent73b1cea7020cd74311b031a2c698b98c65a5ea4f (diff)
Do not compile QtPdf if qt version too low
QtPdf uses macros from 6.3 and should not be compiled with 6.2. Moreover is was never officially released with 6.2. Change-Id: I1971fc91056b173a60020907c15a6896aea8b5af Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rw-r--r--configure.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 35d21b895..68c768440 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -251,6 +251,7 @@ qt_feature("qtwebengine-quick-build" PRIVATE
qt_feature("qtpdf-build" PUBLIC
LABEL "Build Qt PDF"
PURPOSE "Enables building the Qt Pdf modules."
+ CONDITION Qt6Core_VERSION VERSION_GREATER_EQUAL "6.3"
)
qt_feature("qtpdf-widgets-build" PRIVATE
LABEL "Build QtPdfWidgets"