I want to set up a task in VS Code to configure the project with CMake.
Sadly I cannot find out how to pass args like
-DCMAKE_C_COMPILER:FILEPATH=gcc
to CMake within a task.
The IDE reports that “args” is not supported.
Current snippet:
"tasks": [
{
"type": "cmake",
"label": "CMake: configure",
"command": "configure",
"problemMatcher": [],
"detail": "CMake template configure task"
},
],