mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 12:57:59 +08:00
[vcpkg integrate] Exit silently if target cannot be found.
This commit is contained in:
parent
d98d7b386d
commit
33ce94a456
@ -2,7 +2,14 @@
|
||||
param([string]$targetBinary, [string]$installedDir, [string]$tlogFile)
|
||||
|
||||
function resolve($targetBinary) {
|
||||
$targetBinaryPath = Resolve-Path $targetBinary
|
||||
try
|
||||
{
|
||||
$targetBinaryPath = Resolve-Path $targetBinary -erroraction stop
|
||||
}
|
||||
catch [System.Management.Automation.ItemNotFoundException]
|
||||
{
|
||||
return
|
||||
}
|
||||
$targetBinaryDir = Split-Path $targetBinaryPath -parent
|
||||
|
||||
$a = $(dumpbin /DEPENDENTS $targetBinary | ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" })
|
||||
|
Loading…
x
Reference in New Issue
Block a user