microsoft / microsoft/vscode-cmake-tools

Fetch CMAKE variables from CMakePresets.json and CMakeLists.txt

Open
#4,301 2 comments 1 reaction 0 assignees View on GitHub
enhancement Feature: configure Feature: other Feature: presets
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

Are there any ways to fetch variables or options from CMAKE via command substitution, e.g. library path provided by package managers in toolchain file and presets? It's helpful in `launch.json` file.

### CMake Tools Diagnostics

```shell

```

### Debug Log

```shell

```

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how CMakePresets.json, CMakeLists.txt, and toolchain files expose variables or options for use in launch.json. Clarify the supported command-substitution behavior and define completion as reliably making the requested CMake values available in launch.json; the issue provides no diagnostics or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, vscode
Domain
build-system, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.