mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
* 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:
parent
c7f30eca90
commit
b357d2d0c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user