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

Details

    • 2f6854840df124c3d3997d763b55461281831754

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes