Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28498

CMakePresets.json : "inherits" key does not support multi-level inheritance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 9.0.0-rc1
    • None
    • All
    • 9deef74d9 (9.0)

    Description

      Bug QTCREATORBUG-28360 is now fixed, which allows for using the "inherits" key in CMakePreset.json. This is a great improvment. However, multi-level inheritance is not supported by Qt Creator, though it is by CMake command line tool (cmake --preset).

      This CMakePreset.json file is not correctly parsed by Qt Creator:

      {
      "version": 3,
      "configurePresets": [

      { "name": "grandfather", "hidden": true, "environment":\{ "MYVAR": "foo" }

      },

      { "name": "father", "hidden": true, "inherits": "grandfather" }

      ,

      { "name": "child", "inherits": "father" }

      ]}

      The environment variable "MYVAR" is set in the "father" preset, but not in the "child" preset.

       

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-28498
        # Subject Branch Project Status CR V

        Activity

          People

            cadam Cristian Adam
            floc Flo C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes