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

Add support for generator expressions in add_custom_command OUTPUT file names

    XMLWordPrintable

Details

    Description

      With the new moc --collect-json, when doing multi-config builds (debug and release), we will have to create .json file for each configuration e.g core_debug_metatypes.json and core_release_metatypes.json.

      CMake currently does not allow to change the names of files created by add_custom_command commands, because it lacks support for specifying generator expressions in the OUTPUT values.

      Upstream issue at https://gitlab.kitware.com/cmake/cmake/issues/12877 and initial WIP patch at https://gitlab.kitware.com/cmake/cmake/merge_requests/3865

      Main WIP patch at https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5402

      Attachments

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

        Activity

          People

            crscott Craig Scott
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes