Fix build without PDF
tst_baseline_painting and tst_qpdfwriter rely on QT_FEATURE_pdf being enabled, without making it a condition to build the tests. Don't build the tests with PDF disabled. Task-number: QTBUG-122137 Pick-to: 6.7 6.6 6.5 Change-Id: Idbf03f30557618c83e946a80b7759cd4f6978ad5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
0872212812
commit
90a6415bed
@ -10,7 +10,9 @@ add_subdirectory(qpagelayout)
|
||||
add_subdirectory(qpageranges)
|
||||
add_subdirectory(qpagesize)
|
||||
add_subdirectory(qpainter)
|
||||
add_subdirectory(qpdfwriter)
|
||||
if (QT_FEATURE_pdf)
|
||||
add_subdirectory(qpdfwriter)
|
||||
endif()
|
||||
add_subdirectory(qpen)
|
||||
add_subdirectory(qpaintengine)
|
||||
add_subdirectory(qtransform)
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
if(TARGET Qt::Gui AND TARGET Qt::Network)
|
||||
if(TARGET Qt::Gui AND TARGET Qt::Network AND QT_FEATURE_pdf)
|
||||
add_subdirectory(painting)
|
||||
endif()
|
||||
if(TARGET Qt::Network AND TARGET Qt::Widgets)
|
||||
|
Loading…
x
Reference in New Issue
Block a user