presets: Comments in CMakePresets.json should produce an error
This issue appears to have made it an error to have comments in your CMakePresets.json file: #21858 (closed)
The release notes confirm this intent: https://cmake.org/cmake/help/latest/release/3.19.html#id6
However, when I run cmake with the --preset
switch in the terminal, cmake does not seem to care that there are comments in my presets file and happily ignores them. We made a change in CMake Tools (VS Code extension) to disallow the comments, but it appears that the versions of cmake that I tested (3.20.2 and 3.21.2 on Windows) process the presets file fine if comments are inserted. RE: https://github.com/microsoft/vscode-cmake-tools/issues/2104
Which way should we go with this?
Edited by Brad King