Fix Qt6 package name which was forgotten when removing the variable used to differentiate between Qt5 nd Qt6.

This commit is contained in:
Andre Rummler
2026-09-28 23:03:11 +02:00
parent 574d6dcd56
commit 2b813a0d91
+2 -2
View File
@@ -93,8 +93,8 @@ endif()
# the application depends on. When it's missing the feature is silently
# disabled - see the QET_HAS_SCRIPTING guard in qetscripting.*.
set(QET_HAS_SCRIPTING FALSE)
find_package(Qt${QT_VERSION_MAJOR} QUIET COMPONENTS Qml)
if(TARGET Qt${QT_VERSION_MAJOR}::Qml)
find_package(Qt6 QUIET COMPONENTS Qml)
if(TARGET Qt6::Qml)
set(QET_HAS_SCRIPTING TRUE)
list(APPEND QET_PRIVATE_LIBRARIES Qt::Qml)
add_compile_definitions(QET_HAS_SCRIPTING)