aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-01-24 15:17:45 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-01-24 15:17:45 -0800
commit33ce94a4565ce68cd02cacda221fccbd756d3949 (patch)
treeed93d1936895094df22b4cf02e9e63f8a546f8f0 /scripts
parentd98d7b386dc894ff1aaf620900c8b5a96aa1836b (diff)
downloadvcpkg-33ce94a4565ce68cd02cacda221fccbd756d3949.tar.gz
vcpkg-33ce94a4565ce68cd02cacda221fccbd756d3949.zip
[vcpkg integrate] Exit silently if target cannot be found.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildsystems/msbuild/applocal.ps19
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 "^ ","" })