Struggling to find CMakeSettings.json equivalent in VS Code #3613
-
I'm struggling to find any information on the docs/forums about how exactly I can setup the same configurations I have on Visual Studio for CMake in VS Code. From my understanding, it seems CMakeSettings.json is strictly for Visual Studio which I have and it works fine on Visual Studio. But, when I try to open and build the same codebase on VS code, I get a CMake error because the I have tried to configure a few things with CMakePresets.json but again I couldn't properly translate from CMakeSettings.json to presets. I'm essentially trying to find the equivalent of this set of configurations in the VS code's CMake Tools extension: Any help on this would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@kvnandula04 Apologies for the delay in response. However, the officially supported configuration control using cmake is CMakePresets.json! There are docs here: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html, as well as docs for this extension here: https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-presets.md. We also have the |
Beta Was this translation helpful? Give feedback.
@kvnandula04 Apologies for the delay in response. However, the officially supported configuration control using cmake is CMakePresets.json!
There are docs here: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html, as well as docs for this extension here: https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-presets.md.
We also have the
Quick Start
experience which can help you create a CMakePresets.json file and allow you to control your configurations.