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
-