Qt6: fix Qt5 builds

This commit is contained in:
tobtoht 2022-05-24 18:04:15 +02:00
parent e7085b8d9e
commit 45d2dc13d4
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -11,7 +11,6 @@ set(QT_COMPONENTS
Gui
Network
Svg
SvgWidgets
Xml
WebSockets
)
@ -22,7 +21,7 @@ if (WITH_SCANNER)
MultimediaWidgets)
endif()
find_package(Qt6 REQUIRED COMPONENTS ${QT_COMPONENTS})
find_package(Qt6 REQUIRED COMPONENTS ${QT_COMPONENTS} SvgWidgets)
if (NOT Qt6_FOUND)
find_package(Qt5 5.15 REQUIRED COMPONENTS ${QT_COMPONENTS})
endif()