Brief Issue Summary
CMakePresets for windows targets using msvc cannot be configured easily as there is no support for the cmakeGenerateCommand vendor option. The only reason this is useful is due to the fact that we must call vcvarsall.bat to load all the required envs to build against msvc. We've been achomplishing this through bat files that use vswhere to first locate, then execute the vcvarsall bat file.
Note I am able to use cmake presets in visual studio 2019 preview, and it works great.
The vendor section in question is:
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"cmakeGenerateCommand": "setup.bat Debug"
}
}
I will note that this is in the json schema definition in vscode, however there is no logic to execute it.
So until this is supported I am relying on the cmake-kits/cmake-variants flow as it supports the option 'environmentSetupScript'
Brief Issue Summary
CMakePresets for windows targets using msvc cannot be configured easily as there is no support for the cmakeGenerateCommand vendor option. The only reason this is useful is due to the fact that we must call vcvarsall.bat to load all the required envs to build against msvc. We've been achomplishing this through bat files that use vswhere to first locate, then execute the vcvarsall bat file.
Note I am able to use cmake presets in visual studio 2019 preview, and it works great.
The vendor section in question is:
I will note that this is in the json schema definition in vscode, however there is no logic to execute it.
So until this is supported I am relying on the cmake-kits/cmake-variants flow as it supports the option 'environmentSetupScript'