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

Use depfiles in add_custom_command with MSVC and Xcode when available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.0
    • Build System: CMake
    • None

      Xcode and MSBuild depfile support for add_custom_command has landed for 3.21.0.
      Makefile depfile support landed in 3.20.0.

      https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6006
      https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6206
      https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5617

      We could now try to leverage these in our add_custom_command calls that would impact user projects.

      A non-exhaustive list of functions we might want to augment with depfile support are:

      qt6_qml_type_registration
      

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

            qtbuildsystem Qt Build System Team
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes