diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-01-24 15:17:45 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-01-24 15:17:45 -0800 |
| commit | 33ce94a4565ce68cd02cacda221fccbd756d3949 (patch) | |
| tree | ed93d1936895094df22b4cf02e9e63f8a546f8f0 /scripts/buildsystems | |
| parent | d98d7b386dc894ff1aaf620900c8b5a96aa1836b (diff) | |
| download | vcpkg-33ce94a4565ce68cd02cacda221fccbd756d3949.tar.gz vcpkg-33ce94a4565ce68cd02cacda221fccbd756d3949.zip | |
[vcpkg integrate] Exit silently if target cannot be found.
Diffstat (limited to 'scripts/buildsystems')
| -rw-r--r-- | scripts/buildsystems/msbuild/applocal.ps1 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/buildsystems/msbuild/applocal.ps1 b/scripts/buildsystems/msbuild/applocal.ps1 index 46981fad5..55680c1f6 100644 --- a/scripts/buildsystems/msbuild/applocal.ps1 +++ b/scripts/buildsystems/msbuild/applocal.ps1 @@ -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 "^ ","" }) |
