The value of hostOS is used by Visual Studio and Visual Studio Code to hide Configure Presets that don't apply to the OS of the target system and provide a better user experience. Accepted values are Windows, Linux, and macOS. SettingĪn array of supported operating systems (OS). These options are specific to the Open Existing Cache scenario in Visual Studio and can't be reproduced from the command line. The exceptions are the cacheRoot and cmakeGenerateCommand options. It's so the same CMakePresets.json file can be used to drive CMake with Visual Studio, Visual Studio Code, and from the command line. ![]() The options in the Visual Studio Settings vendor map don't affect the construction of the CMake or CTest command line. The Visual Studio Settings vendor map is supported by both CMakePresets.json and CMakeUserPresets.json. Only options that have been modified are written to the file. Options that apply to both Visual Studio and Visual Studio Code have been explicitly marked.Īll settings in the Visual Studio Settings vendor map are optional and inherited from Configure Presets specified by the inherits key. All options in the vendor map apply to Visual Studio. One vendor map with the vendor URI /VisualStudioSettings/CMake/ is allowed per Configure Preset and contains options specific to CMake integration in Visual Studio and Visual Studio Code. It includes information about Configure Presets, Build Presets, and Test Presets.įor more information about how to use CMakePresets.json in Visual Studio, see Configure and build with CMake Presets in Visual Studioįor more information about how to use CMakePresets.json in Visual Studio Code, see Configure and build with CMake Presets in VS Code Visual Studio Settings vendor map For more information about the rest of the schema, see the official CMake documentation. ![]() Here we document two Microsoft vendor maps and vendor macros. ![]() Microsoft maintains two vendor maps with options specific to Visual Studio and Visual Studio Code. The schema for both files is identical.ĬMakePresets.json and CMakeUserPresets.json support vendor maps to store vendor-specific information. CMake supports two files, CMakePresets.json and CMakeUserPresets.json, that allow users to specify common configure, build, and test options and share them with others.ĬMakePresets.json and CMakeUserPresets.json can be used to drive CMake in Visual Studio, in Visual Studio Code, in a Continuous Integration (CI) pipeline, and from the command line.ĬMakePresets.json is intended to save project-wide builds, and CMakeUserPresets.json is intended for developers to save their own local builds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |