Vscode-cmake-tools: Where to setup the "cmake option profile"?

Created on 14 Feb 2020  路  2Comments  路  Source: microsoft/vscode-cmake-tools

Hi all,

I would like to know is there a function in VSCode has a similar function to set the option profile, similar to CLion's Profile setting?

I have a single embedded project that has a few different hardware to support, like this:

screenshot

Assuming a project called Foobar and I have 3 different boards with different microcontrollers on it. In the profile list, it has 6 different profiles, every two matches a different board (Debug or Release). Then for board Baz, the profile has a CMake option -DFOOBAR_T ARGET=BAZ-BOARD.

screenshot2

Then later if I need to select one compile target, I just need to pick the profile from the list at the top right corner and start the build.

Is there a similar way to do so in this CMake plugin? Thanks in advance!

Regards,
Jackson

variants question

Most helpful comment

We have a concept called "variants" where you can configure something similar. Take a look at this documentation and let us know if that will address your question.

https://vector-of-bool.github.io/docs/vscode-cmake-tools/variants.html

All 2 comments

We have a concept called "variants" where you can configure something similar. Take a look at this documentation and let us know if that will address your question.

https://vector-of-bool.github.io/docs/vscode-cmake-tools/variants.html

@bobbrow Thanks!

Was this page helpful?
0 / 5 - 0 ratings