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

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

Reply via email to