Qt6: fix Qt5 builds

This commit is contained in:
tobtoht
2022-05-24 18:04:15 +02:00
parent e7085b8d9e
commit 45d2dc13d4
+1 -2
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()