How and where exactly can be used the Kit related variables? #3379
-
Hi, I'm trying to use CMake kits related variables mentioned in Configure CMake Tools settings in my tasks.json and settings.json, but seems they are not really defined (yet?) when referencing them. As I understood, the simplest test case should work also, e.g. when I echo the content of the variables from a simple task
but using the above test task.json when invoking the I also tried it in my
in my
in my tasks.json does not contain the proper value in the expanded Where can I reference the Configure CMake Tools settings variables exactly? TIA! p.s.: I'm using v1.15.31 on macOS, and yes, I do have the Kits scanned and set up perfectly already via Scan for kits |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@HofiOne I believe you are attempting to use them in situations when they are accessible, however, the locations you are using them, they need to be accessed via commands rather than just variables: https://github.com/microsoft/vscode-cmake-tools/blob/0378fdc4a409c63cfb92824f39fe3c23c9d5e0d0/docs/cmake-settings.md#command-substitution |
Beta Was this translation helpful? Give feedback.
@HofiOne I believe you are attempting to use them in situations when they are accessible, however, the locations you are using them, they need to be accessed via commands rather than just variables: https://github.com/microsoft/vscode-cmake-tools/blob/0378fdc4a409c63cfb92824f39fe3c23c9d5e0d0/docs/cmake-settings.md#command-substitution