diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-23 15:47:00 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-23 15:47:00 -0800 |
| commit | 1a502849292953514d3094f25ba0f2a3327addcc (patch) | |
| tree | b2e8f06dc0156c951d0ba9323f37d200d5b03f85 /toolsrc/src | |
| parent | 4b9f258c70d78a9e2d954eea7017bfb0f371cfbb (diff) | |
| download | vcpkg-1a502849292953514d3094f25ba0f2a3327addcc.tar.gz vcpkg-1a502849292953514d3094f25ba0f2a3327addcc.zip | |
Use System::set_environmental_variable()
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/commands_build.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/commands_build.cpp b/toolsrc/src/commands_build.cpp index 2159cec2c..98f0cbbb0 100644 --- a/toolsrc/src/commands_build.cpp +++ b/toolsrc/src/commands_build.cpp @@ -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); |
