[Pkg-cmake-team] Bug#1087385: cmake 3.31.0-1 breaks Qt6Qml builds

Hefee hefee at debian.org
Wed Nov 13 16:28:21 GMT 2024


Hey,

> ```
> cmake_minimum_required(VERSION 3.30)
> project(DebianIssue1087385)
> find_package(Qt6 REQUIRED COMPONENTS Qml)
> add_executable(main main.cxx)
> target_link_libraries(main PRIVATE Qt6::QmlPrivate)
> ```
> 
> both CMake 3.31.0 and 3.30.5 show:

ACK that fails here, too.

But if I do (with an empty test.qml): 

```
cmake_minimum_required(VERSION 3.30)
project(DebianIssue1087385)
find_package(Qt6 REQUIRED COMPONENTS Qml)
qt_standard_project_setup(REQUIRES 6.5)
qt6_add_qml_module(main URI "test" QML_FILES test.qml)
```

If parses fine with 3.30.5 and fails with 3.31.0. 

the call stack so far I understood:
qt6_add_qml_module ->  _qt_internal_target_enable_qmlcachegen that calls ( 
Qt6QmlMacros.cmake line 12250):
    target_link_libraries(main PRIVATE
        Qt6::QmlPrivate
        Qt6::Core
    )

I added a message cmd before to see, that it is triggerd and the arguments.

Okay there is something going on that stopped the error to bubble up on 
3.30.5.

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/958b929c/attachment.sig>


More information about the Pkg-cmake-team mailing list