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 · 4 comments
Open

CMake presets don't work with VSCode #76

dietmarkuehl opened this issue Nov 9, 2024 · 4 comments

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

ClausKlein commented Nov 10, 2024

A simple workaround would be in git bash on windows:

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

@maikel
Copy link
Collaborator

maikel commented Nov 17, 2024

I had the same issue when setting up my environment yesterday. I modified the CMakePresets locally.

Do you know which piece of software is wrong? A vscode plugin?

@dietmarkuehl
Copy link
Collaborator Author

It seems cmake understands the variable OK. I have the impression the VS Code plug-in is interpreting the the files. But I don't know how these actually work.

@ClausKlein
Copy link
Collaborator

ClausKlein commented Nov 17, 2024

The MS tools does not support the newest preset version 9, see https://github.com/beman-project/execution26/blob/b8b689b7e08d3960d1a097cd8579ad4f17eff503/CMakePresets.json#L5
Only CMake v3.30 only supports it.

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

3 participants