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

CMake presets don't work with VSCode #76

Open
dietmarkuehl opened this issue Nov 9, 2024 · 1 comment
Open

CMake presets don't work with VSCode #76

dietmarkuehl opened this issue Nov 9, 2024 · 1 comment

Comments

@dietmarkuehl
Copy link
Collaborator

It seems, the ${hostSystemName}` doesn't get expanded in the presets include when loading a project with VSCode:

[presetController] Included presets file .../execution26/cmake/CMake${hostSystemName}Presets.json cannot be found

As result, the CMake plugin is unhappy. I have found this issue which seems to have reported this problem but it was closed as fixed.

@ClausKlein
Copy link
Collaborator

A simple workaround would be:

perl -p -i.bak -e 's/\${hostSystemName}/Windows/g;' CMakePresets.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants