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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes