vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

capture VCPKG_ROOT from Visual Developer env

Open hanniavalera opened this issue 2 months ago • 0 comments

This change addresses item #4630

This changes visible behavior

The following changes are proposed:

  • include VCPKG_ROOT when we capture a Visual Studio developer environment.
  • document fix in CHANGELOG.md

The purpose of this change

Ensure that any workflow in CMake Tools that uses a Visual Studio developer environment such as selecting a VS kit, configuring via a preset that sets cmake.useVsDeveloperEnvironment, or relying on the “Set Visual Studio Developer Environment” command now surfaces the same VCPKG_ROOT value that a VS Developer Command Prompt provides, so vcpkg-based configure runs behave consistently.

Other Notes/Information

Manually verified by selecting a VS kit and running CMake: Configure, VCPKG_ROOT now prints the VS vcpkg path. Presets using the VS developer environment inherit the same behavior.

hanniavalera avatar Dec 09 '25 16:12 hanniavalera