Skip to content

Commit 0ddb417

Browse files
committed
CMake: fix Svg dependency handling for pdf examples
Since the find_package() calls in the example CMakeLists only create targets when the example is being built standalone, we still get warnings when configuring the full module. Without Svg support the example will look a bit broken, but this way it is still possible to build without qtsvg and deploy for a system which has svg rendering runtime. Amends 50db3f6 CMake: silence warning configuring examples Pick-to: 6.8 6.9 Change-Id: Ifc17f00e1ba7d29638296c823f2af005996a44c5 Reviewed-by: Michal Klocek <[email protected]>
1 parent 59be22a commit 0ddb417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ find_package(Qt6 ${PROJECT_VERSION} CONFIG QUIET OPTIONAL_COMPONENTS
3737
WebChannel WebChannelQuick Positioning QuickControls2
3838
Test QuickWidgets QuickTest WebSockets Designer
3939
JpegPrivate PngPrivate HarfbuzzPrivate FreetypePrivate ZlibPrivate
40-
HttpServer
40+
HttpServer Svg
4141
)
4242

4343
if(MATRIX_BUILD AND NOT MATRIX_SUBBUILD AND NOT QT_SUPERBUILD)

0 commit comments

Comments
 (0)