[vcpkg integration] Explicitly skip empty entries instead of recursing. Fixes #460.

This commit is contained in:
Robert Schumacher 2017-01-13 17:39:12 -08:00
parent 2bc4064b1e
commit da09df713f

View File

@ -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"