presets: Add trace options to configure presets
A single commit which adds the ability to specify trace options to cmake presets. Also adds cmake-presets version 7
as part of CMake 3.27. This commit was originally a part of !8227 (closed).
Trace options were added to allow specifying trace within presets, much like how you can already do with debug
and warn
levels, so that it does not have to be specified on the command line and allows it to be enabled for anyone using a preset.
Example CMakePresets.json
with trace options:
{
"version": 7,
"configurePresets": [
{
"name": "TraceAll",
"trace": {
"mode": "expand",
"format": "json-v1",
"source": "TraceSourceFile.txt",
"redirect": "TraceRedirectFile.json"
}
}
]
}
Fixes: #22543 (closed)
Topic-rename: presets-add-trace
Edited by Brad King