Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131588

[REG: 6.7 -> 6.8] Build fails if a Qt project is done in a function

XMLWordPrintable

    • 2f6854840df124c3d3997d763b55461281831754

      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)
      

        For Gerrit Dashboard: QTBUG-131588
        # Subject Branch Project Status CR V

            lecris Cristian Le
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes