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()