Does command:cmake.buildType
support Multi-Config generators?
#2893
-
I have a CMake (presets enabled) project that I'm building on VSCode, I'm using the visual studio generator, but it used some shared DLLs (Catch2). When running the project, I need to add the path to those DLLs for windows to find them. The DLLs are in different locations depending on the build configuration. Setting the environment in the Here is a sample task to test this: {
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "test env",
"command": "echo",
"args": [
"$env:Path"
],
"options": {
"env": {
"PATH": "${env:PATH}C:/dev/libs/${command:cmake.buildType}"
}
},
"problemMatcher": []
}
]
} The path is always |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's a bug in the extension. It should be addressed with #2895. |
Beta Was this translation helpful? Give feedback.
It's a bug in the extension. It should be addressed with #2895.