From 0d633739a7e1e7cdf6ea0d363e6d7e6552f606bc Mon Sep 17 00:00:00 2001 From: vasilito Date: Sat, 1 Aug 2026 15:31:57 +0300 Subject: [PATCH] =?UTF-8?q?kde:=20ECMQmlModule6=20=E2=80=94=20make=20Qt6::?= =?UTF-8?q?Qml=20optional=20(qtdeclarative=20not=20on=20Redox)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit find_package(Qt6 COMPONENTS Core Qml CONFIG) marked Qml as a required component, so any KDE package including ECMQmlModule failed its feature_summary even though the module already returns gracefully when Qt6::Qml is absent. Use OPTIONAL_COMPONENTS for Qml (Core stays required). qtdeclarative/QtQuick/QtQml are not built for the Redox cross target; QML modules are simply skipped. --- .../source/modules/ECMQmlModule6.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/local/recipes/kde/kf6-extra-cmake-modules/source/modules/ECMQmlModule6.cmake b/local/recipes/kde/kf6-extra-cmake-modules/source/modules/ECMQmlModule6.cmake index 66fa0a5d57..1e67961c37 100644 --- a/local/recipes/kde/kf6-extra-cmake-modules/source/modules/ECMQmlModule6.cmake +++ b/local/recipes/kde/kf6-extra-cmake-modules/source/modules/ECMQmlModule6.cmake @@ -7,10 +7,14 @@ cmake_policy(VERSION 3.16) -find_package(Qt6 COMPONENTS Core Qml CONFIG) +# Qml is OPTIONAL: qtdeclarative is not built for the Redox cross target. Marking +# it required here makes the including project's feature_summary fail even though +# the block below already returns gracefully when Qt6::Qml is absent (QML modules +# are simply not built; the C++ library still is). +find_package(Qt6 COMPONENTS Core OPTIONAL_COMPONENTS Qml CONFIG) if (NOT TARGET Qt6::Qml) - message(WARNING "Target Qt6::Qml was not found. ECMQmlModule requires the QML module when building with Qt 6") + message(STATUS "Qt6::Qml not found; ECMQmlModule QML-module support disabled") return() endif()