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

CMakePresets.json : include doesn't work for build presets.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 10.0.0
    • None
    • Rocky Linux 8
      QtCreator 10
      CMake 3.25.2
    • bf4934feb (10.0)

    Description

      If you add following base build preset at separate file
      ...
        "buildPresets": [
          {
            "name": "Linux-CPP-only-build",
            "hidden": true,
            "verbose": true,
            "jobs": 4,
            "environment":

      {         "PATH": "/opt/rh/gcc-toolset-11/root/usr/bin:$penv\{PATH}

      ",
              "CXX": "g++",
              "CC": "gcc"
            },
            "condition": {
              "type": "equals",
              "lhs": "${hostSystemName}",
              "rhs": "Linux"
            }
          }

      ]

      ...

      then include this file and inherit from it.
        "buildPresets": [
         

      {       "inherits": "Linux-CPP-only-build",       "name": "Release",       "configurePreset": "Release"     }

      ]

      all base settings will be missed at QtCreator UI.

      Attachments

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

        Activity

          People

            paval Paval Liavonau
            paval Paval Liavonau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes