Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
Description
To reproduce, try building attached example.
It fails with:
ninja: error: '::moc', needed by 'meta_types/qt6target_debug_metatypes.json', missing and no known rule to make it
It seems QT_CMAKE_EXPORT_NAMESPACE has to be defined now on top level, so this would workaround it:
set(QT_CMAKE_EXPORT_NAMESPACE Qt6)
Attachments
Issue Links
- relates to
-
QTBUG-130757 Calling find_pacakge(Qt) in a specific directory scope and using the targets in sibling scopes can lead to issues
-
- Open
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-131588 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
622965,3 | Add test collection for `find_package` | dev | qt/qtbase | Status: NEW | +2 | 0 |
623178,2 | Fix public functions when `find_package(Qt6)` is called elsewhere | dev | qt/qtbase | Status: NEW | 0 | +1 |