Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77376 CMake Port: Upstream CMake issues
  3. QTBUG-74521

Fix automoc upstream to correctly rerun moc when dependent includes have changed

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Fix Version/s: 6.0.0
    • Component/s: Build System
    • Labels:
    • Platform/s:
      All

      Description

      Example:

      • Have a foo.cpp file that includes foo.h that includes bar.h
      • Have foo.cpp #include "foo.moc"

      Currently if bar.h is changed, automoc will not rerun moc on foo.cpp. This is because automoc doesn't transfer the dependencies of foo.cpp to foo.moc, nor does it run the preprocessor on foo.moc to figure out the dependencies.

      We will need this when doing feature re-configuration (for example you build qtbase with opengl feature enabled, and then you reconfigure with opengl feature disabled).

      Currently moc is not rerun, and you get build failures.

      Upstream issue
      https://gitlab.kitware.com/cmake/cmake/issues/19058
      https://gitlab.kitware.com/cmake/cmake/issues/17750

        Attachments

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

          Activity

            People

            • Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              alexandru.croitor Alexandru Croitor
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There is 1 open Gerrit change