Ability to pass custom target to "CMake: Build Target" command (aka cmake.buildWithTarget
) as argument
#3598
Labels
enhancement
an enhancement to the product that is either not present or an improvement to an existing feature
Feature: build
help wanted
we currently are not planning work on this and would like help from the open source community
Milestone
Brief Issue Summary
I would like to configure a task which would depend on building a specific target. It is possible to call a command from a task using
"inputs"
,tasks.json
would look something like this:Unfortunately,
cmake.buildWithTarget
does not support receiving target as argument, instead it unconditionally prompts user for target selection:vscode-cmake-tools/src/cmakeProject.ts
Lines 2066 to 2067 in 2878725
This is not acceptable in my use case, because there is a specific target I want to build and I don't want to bother workspace users with target selection (which would be non-user-friendly and error-prone).
Could you please make
cmake.buildWithTarget
accept target as argument?CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: