diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-01-13 17:39:12 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-01-13 17:39:12 -0800 |
| commit | da09df713fe7b68d432108802447eb534a7dd555 (patch) | |
| tree | 4dd2f7f2feb8642d826caeece5a709df7c85fa9f /scripts/buildsystems | |
| parent | 2bc4064b1e99b31bd550982011e251f97d5a0aef (diff) | |
| download | vcpkg-da09df713fe7b68d432108802447eb534a7dd555.tar.gz vcpkg-da09df713fe7b68d432108802447eb534a7dd555.zip | |
[vcpkg integration] Explicitly skip empty entries instead of recursing. Fixes #460.
Diffstat (limited to 'scripts/buildsystems')
| -rw-r--r-- | scripts/buildsystems/msbuild/applocal.ps1 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/buildsystems/msbuild/applocal.ps1 b/scripts/buildsystems/msbuild/applocal.ps1 index ddb4a07f9..46981fad5 100644 --- a/scripts/buildsystems/msbuild/applocal.ps1 +++ b/scripts/buildsystems/msbuild/applocal.ps1 @@ -7,6 +7,9 @@ function resolve($targetBinary) { $a = $(dumpbin /DEPENDENTS $targetBinary | ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" }) $a | % { + if ([string]::IsNullOrEmpty($_)) { + continue + } if (Test-Path "$installedDir\$_") { if (Test-Path "$targetBinaryDir\$_") { Write-Verbose "$_ is already present" |
