mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
Use System::set_environmental_variable()
This commit is contained in:
parent
4b9f258c70
commit
1a50284929
@ -38,8 +38,8 @@ namespace vcpkg::Commands::Build
|
||||
}
|
||||
|
||||
// If these environment variables are set while running the VS2017 developer prompt, it will not correctly initialize the build environment.
|
||||
_wputenv_s(L"VSINSTALLDIR", L"");
|
||||
_wputenv_s(L"DevEnvDir", L"");
|
||||
System::set_environmental_variable(L"VSINSTALLDIR", L"");
|
||||
System::set_environmental_variable(L"DevEnvDir", L"");
|
||||
|
||||
const fs::path ports_cmake_script_path = paths.ports_cmake;
|
||||
const Environment::vcvarsall_and_platform_toolset vcvarsall_bat = Environment::get_vcvarsall_bat(paths);
|
||||
|
Loading…
x
Reference in New Issue
Block a user