Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve automatic setup of MSVC dev environment with presets #4225

Open
sinemakinci1 opened this issue Jan 3, 2025 · 0 comments
Open

Improve automatic setup of MSVC dev environment with presets #4225

sinemakinci1 opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature
Milestone

Comments

@sinemakinci1
Copy link
Contributor

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

Debug Log

Additional Information

No response

@github-project-automation github-project-automation bot moved this to Blocked in CMake Tools Jan 3, 2025
@github-actions github-actions bot added the triage label Jan 3, 2025
@Amy-Li03 Amy-Li03 added enhancement an enhancement to the product that is either not present or an improvement to an existing feature and removed triage labels Jan 6, 2025
@gcampbell-msft gcampbell-msft added this to the On Deck milestone Jan 7, 2025
@gcampbell-msft gcampbell-msft moved this from Blocked to Pending Prioritization in CMake Tools Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature
Projects
Status: Pending Prioritization
Development

No branches or pull requests

3 participants