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

Add depfile support for CMake generators other than Ninja

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • P3: Somewhat important
    • None
    • None
    • Build System: CMake

    Description

      add_custom_command() calls allow to set up preprocessing of qml files via some external tool, where the tool provides a depfile result as a result of its execution, and thus CMake will know when to rerun the tool in case any of the files in the depfile have been changed.

      But depfile support for add_custom_command is only supported for the Ninja generator.

      Having the support in Xcode / Makefiles / MSBuild would allow proper dependency tracking in a cross-generator case, and thus making sure builds are rebuilt successfully regardless of the generator that application developer uses.

      https://gitlab.kitware.com/cmake/cmake/-/issues/20286

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes