cmake: allow qt6 and qt5 matching
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user