presets inheritation question

Doc says:

An optional array of strings representing the names of presets to inherit from. The preset will inherit all of the fields from the inherits presets by default (except name, hidden, inherits, description, and displayName), but can override them as desired. If multiple inherits presets provide conflicting values for the same field, the earlier preset in the inherits list will be preferred. Presets in CMakePresets.json may not inherit from presets in CMakeUserPresets.json.

I have a question especially about except inherits. What does this mean?

  • Your preset will not add the parents parent into inherits, but will still have settings from the parents parents

or

  • Your preset will only get settings from the parent, not from the parents parent

Thanks!

This one.

1 Like

Please consider improving documentation. Maybe:

The preset will inherit all of the fields (except name, hidden, inherits, description, and displayName) from the inherits presets by default. This includes those, this preset inherited itself. You may overwrite all inherited fields as desired.