mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[vcpkg integration] Explicitly skip empty entries instead of recursing. Fixes #460.
This commit is contained in:
parent
2bc4064b1e
commit
da09df713f
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user