[Pkg-cmake-team] Bug#1087385: cmake 3.31.0-1 breaks Qt6Qml builds
Hefee
hefee at debian.org
Wed Nov 13 13:19:10 GMT 2024
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20241113/a567ad20/attachment.sig>
More information about the Pkg-cmake-team
mailing list