microsoft / microsoft/vscode-cmake-tools
Improve automatic setup of MSVC dev environment with presets
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### Brief Issue Summary
Feedback from Customers:
There should be better feedback about automatic setup of MSVC dev environment with presets. It took me a long time to figure out that I needed to set CMAKE_CXX_COMPILER to cl.exe explicitly in my CMakePresets.json for it to work. Since this is not needed for typical command line / CI workflows where you set up the environment manually (and rely on CMake to correctly guess that you want to compile with MSVC), some help from IDE is desirable here.
From what I can tell, Visual Studio and even JetBrains CLion do not need "CMAKE_CXX_COMPILER": "cl" as an explicit hint in the preset to provide the MSVC environment setup, just the toolset/architecture keys are enough.
Would it be possible to drop this requirement in cmake-tools, reducing friction with presets authored by/for other tools/IDEs?
### CMake Tools Diagnostics
```shell
```
### Debug Log
```shell
```
### Additional Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.