From 2b813a0d91fbacdc0918fddd95f4a9a1ed77ed0a Mon Sep 17 00:00:00 2001 From: Andre Rummler Date: Mon, 28 Sep 2026 23:03:11 +0200 Subject: [PATCH] Fix Qt6 package name which was forgotten when removing the variable used to differentiate between Qt5 nd Qt6. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1694a98c0..9ede16889 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)