Fix issue with compiling vcpkg.exe (#4149) (#4213)

* Fix issue with compiling vcpkg.exe (#4149)

The check for environment variable PATH match
other environment variables. When environment variable
VCTargetsPath used by msbuild is changed in cleanEnvironmentHelper.ps1
 the path is broken. This makes the compilation of vcpkg.exe fail.

This commit fix the issue by checking that environment variable PATH is
exactly PATH.

* [cleanEnvironmentHelper] Use -eq instead of -match
This commit is contained in:
Ken A. Redergård 2018-10-10 14:00:33 +02:00 committed by Robert Schumacher
parent c7f30eca90
commit b357d2d0c3

View File

@ -17,7 +17,7 @@ foreach ($name in $nameSet)
}
# PATH needs to be concatenated as it has values in both machine and user environment. Any other values should be set.
if ($name -match 'path')
if ($name -eq 'path')
{
$pathValuePartial = @()
# Machine values before user values