


You can update your file version by incrementing the version field in the root object. Visual Studio 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 Visual Studio, see Enable CMakePresets.json in Visual Studio 2019. Visual Studio never reads from both CMakePresets.json and CMakeSettings.json at the same time. We recommend CMakePresets.json as an alternative to CMakeSettings.json.
#Cmake versions how to
For more information about how to use CMakePresets.json in Visual Studio Code, see Configure and build with CMake Presets.For more information about the Microsoft vendor maps and macro expansion, see CMakePresets.json and CMakeUserPresets.json Microsoft vendor maps.For more information about the format of CMakePresets.json, see the official CMake documentation.This article contains information about CMakePresets.json integration with Visual Studio. Both files are supported in Visual Studio 2019 version 16.10 or later. CMakeUserPresets.json is for developers to save their own local builds. 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. CMake supports two files that allow users to specify common configure, build, and test options and share them with others: CMakePresets.json and CMakeUserPresets.json.
