[vcpkg] Respect the documented VS environment variable %VCPKG_VISUAL_STUDIO_PATH%

This commit is contained in:
Robert Schumacher 2019-02-05 14:46:17 -08:00
parent 50cf58d494
commit 52f165ef3b

View File

@ -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,