
You can update your file version by incrementing the version field in the root object.

The CMake Tools extension supports version 2 or later for the CMakePresets.json and CMakeUserPresets.json files. Supported CMake and CMakePresets.json versions To enable or disable CMakePresets.json integration in the CMake Tools extension, see Enable CMakePresets.json in the CMake Tools extension. We recommend CMakePresets.json as an alternative to kits and variants files.
CMAKE GENERATOR WINDOWS HOW TO
For more information on how to use CMakePresets.json in Visual Studio, see Configure and build with CMake Presets in Visual Studio.


Their integration is available in CMake Tools version 1.7 and later. CMakeUserPresets.json is for developers to save their own local builds. You can use these files to drive CMake in Visual Studio and Visual Studio Code, in a continuous integration (CI) pipeline, and from the command line.ĬMakePresets.json is for saving project-wide builds. Configure and build with CMake Presets in Visual Studio CodeĬMake supports two files that allow users to specify common configure, build, and test options and share them with others: CMakePresets.json and CMakeUserPresets.json.
