cmake: allow qt6 and qt5 matching

This commit is contained in:
itsmattkc
2022-10-28 19:46:48 -07:00
parent 4d80044d6d
commit d5f645730a
+1 -1
View File
@@ -107,7 +107,7 @@ set(QT_LIBRARIES
if (UNIX AND NOT APPLE) if (UNIX AND NOT APPLE)
list(APPEND QT_LIBRARIES DBus) list(APPEND QT_LIBRARIES DBus)
endif() endif()
find_package(QT NAMES Qt6 REQUIRED find_package(QT NAMES Qt6 Qt5 REQUIRED
COMPONENTS COMPONENTS
${QT_LIBRARIES} ${QT_LIBRARIES}
OPTIONAL_COMPONENTS OPTIONAL_COMPONENTS