mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[vcpkg] Respect the documented VS environment variable %VCPKG_VISUAL_STUDIO_PATH%
This commit is contained in:
parent
50cf58d494
commit
52f165ef3b
@ -102,7 +102,7 @@ static void inner(const VcpkgCmdArguments& args)
|
||||
|
||||
Debug::println("Using vcpkg-root: %s", vcpkg_root_dir.u8string());
|
||||
|
||||
auto default_vs_path = System::get_environment_variable("VCPKG_DEFAULT_VS_PATH").value_or("");
|
||||
auto default_vs_path = System::get_environment_variable("VCPKG_VISUAL_STUDIO_PATH").value_or("");
|
||||
|
||||
const Expected<VcpkgPaths> expected_paths = VcpkgPaths::create(vcpkg_root_dir, default_vs_path);
|
||||
Checks::check_exit(VCPKG_LINE_INFO,
|
||||
|
Loading…
x
Reference in New Issue
Block a user