Skip to content

CmakePresets: Selecting of build targets seems not to be supported or not working #1872

@hwmaier

Description

@hwmaier

Brief Issue Summary

The CMake Tools when using kits and variants allow easy selection of the current build target using either a command or a selector in the toolbar next to the Build icon. It is very easy to switch between different compilation targets in multi-target cmake files or alternatively selecting of [all].

Example:
2021-05-13_12-47-51

2021-05-13_12-49-40

The new CMake Tools "CmakePresets" feature does unfortunately not offer changing the target. Neither is there a similar target icon/selector in the toolbar nor seems there to be a way to change the target otherwise. The Cmake: Set Build Target command is not even listed on my machine nor does running CMake: Set Debug Target work either, but at least the command is listed.

Snag_b337d2

Snag_b5c246

Platform and Versions

  • Operating System: Windows 10
  • CMake Version: 3.20.2
  • VSCode Version: 1.56.1
  • CMake Tools Extension Version: 1.7.3
  • Compiler/Toolchain: not relevant

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions