You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(presets): update to support version 11 and add validation tests
- Increased max supported version from 10 to 11 in presetsParser.
- Added schema handling for version 11 in presetsParser.
- Introduced integration tests for version 10 and version 11 CMake presets.
- Validated support for `$comment` and `graphviz` in version 10.
- Confirmed rejection of `graphviz` in version 9.
- Validated support for `jobs` field as an empty string in version 11.
- Confirmed rejection of empty string `jobs` in version 10.
* update schema URLs to version 11 and enhance job handling for execution
* widen execution.jobs type to support string in TestPreset
* refactor(presets): simplify TestPreset interface and update jobs handling
---------
Co-authored-by: Hannia Valera <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
## 1.23
4
4
5
5
Features:
6
+
- Add support for CMake Presets version 11 (added in CMake 4.3). In test presets, the `execution.jobs` field can now be an empty string, equivalent to passing `--parallel` with no value.
6
7
- Automatically add new source files to `CMakeLists.txt` and remove deleted source files from `CMakeLists.txt`. Two new commands (`cmake.addFileToCMakeLists` and `cmake.removeFileFromCMakeLists`) and nine new `cmake.modifyLists.*` settings provide full control over target selection, variable handling, and confirmation behavior. [#2132](https://github.com/microsoft/vscode-cmake-tools/issues/2132)[#4454](https://github.com/microsoft/vscode-cmake-tools/pull/4454)[@malsyned](https://github.com/malsyned)
7
8
- Allow specifying a custom debug adapter type in `cmake.debugConfig` via the `type` property. When set, automatic debugger detection is skipped and any debug adapter (e.g., `codelldb`, `lldb`) can be used with arbitrary configuration properties. [#4818](https://github.com/microsoft/vscode-cmake-tools/pull/4818)
8
9
- Add `${cmake.testEnvironment}` placeholder for launch.json that resolves to the CTest `ENVIRONMENT` test property, and automatically include CTest environment variables when debugging tests without a launch configuration. [#4572](https://github.com/microsoft/vscode-cmake-tools/issues/4572)[#4821](https://github.com/microsoft/vscode-cmake-tools/pull/4821)
Copy file name to clipboardExpand all lines: docs/cmake-presets.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ We recommend `CMakePresets.json` as an alternative to kits and variants files. T
14
14
15
15
## Supported CMake and `CMakePresets.json` versions
16
16
17
-
The CMake Tools extension supports version 2 or later for the `CMakePresets.json` and `CMakeUserPresets.json` files. You can update your file version by incrementing the version field in the root object. For an example and more information, see [`CMakePresets.json`](https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#format).
17
+
The CMake Tools extension supports version 2 through 11 for the `CMakePresets.json` and `CMakeUserPresets.json` files. You can update your file version by incrementing the version field in the root object. For an example and more information, see [`CMakePresets.json`](https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#format).
18
18
19
19
CMake version 3.20 or later is required when you're invoking CMake with `CMakePresets.json` (version 2 or later) from the command line. CMake Tools reads and evaluates `CMakePresets.json` and `CMakeUserPresets.json`. It doesn't invoke CMake directly with the `--preset` option. So, CMake version 3.20 or later isn't strictly required when you're building with `CMakePresets.json` inside Visual Studio Code. We recommend using CMake version 3.14 or later.
0 commit comments