[Bug] cmake workflow don't use the "targets" in buildpreset which i use in workflowpresets
Brief Issue Summary
I use workflow to configure then build,i set the "targets" in the buildpreset,but plugin use target in sidebar i selected,i think it's not reasonaable,it should use the targets i set in the CMakePresets.json file.Or is this something you intentionally did?
CMake Tools Diagnostics
*
Debug Log
*
Additional Information
No response
"buildPresets": [ { "name": "debug", "displayName": "Build Debug", "configurePreset": "linux-debug", "configuration": "Debug" }, { "name": "release", "displayName": "Build Release", "configurePreset": "linux-release", "configuration": "Release" }, { "name": "workflow-build", "displayName": "workflow-build", "configurePreset": "linux-debug", "configuration": "Debug", "targets": [ "client" ] } ], "workflowPresets": [ { "name": "workflow", "description": "workflow configure then build", "displayName": "workflow", "steps": [ { "type": "configure", "name": "linux-debug" }, { "type": "build", "name": "workflow-build" } ] } ]
Hi @Sdofsilence , thanks for reporting issue here! We can reproduce this issue on VS Code 1.104.2 + CMake tools 1.22.11 version. Repro Steps:
- Download the attached project (Test4581.zip) and open it.
- On CMake pane, set "Workflow" to "workflow", set the build target to “all” or other targets, excluding the target defined in the workflow.
- Run Workflow and observe the result.
Details please see following video:
FYI: @gcampbell-msft