Hey,

> This seems to be coming from
> /usr/lib/x86_64-linux-gnu/cmake/Qt6Qml/Qt6QmlTargets.cmake
> in qt6-declarative-dev.

ACK this file has the missing path. I started to investigate it in kf6-kcmutils 
a bit and the problem is the macro qt6_add_qml_module.

the usage in  autotests/kconfig_compiler/CMakeLists.txt triggers it:

qt6_add_qml_module(test15qml URI "org.kde.kconfig.test15" QML_FILES 
Test15Qml.qml)

it boils down to  the macro _qt_internal_target_enable_qmlcachegen that 
includes Qt6::QmlPrivate, that reads Qt6QmlTargets.cmake.

(As workaround I can install qt6-declarative-private-dev and it compiles).

On the other side the macro is used successfully in src/qml/CMakeLists.txt via 
ecm_add_qml_module ( but no qml files are added) and this compiles without any 
error:

qt6_add_qml_module(KF6ConfigQml URI "org.kde.config")

Than I tested to downgrade cmake to testing:

The issue does not happen, when I use cmake 3.10.5.

3.31.0 does  care about non existing directories in 
INTERFACE_INCLUDE_DIRECTORIES 
3.30.5 do not care about non-existing directories.

Regards,

hefee

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to