diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-25 17:49:13 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-25 17:49:13 -0700 |
| commit | ff639ecc0291bd4a27aacfb4c56b49712cfd16e6 (patch) | |
| tree | d14d369c6701a339c3187d350162d053a36729e2 /scripts | |
| parent | 9775cfff1dc51ff5f59f73167a39af388dbe4b43 (diff) | |
| download | vcpkg-ff639ecc0291bd4a27aacfb4c56b49712cfd16e6.tar.gz vcpkg-ff639ecc0291bd4a27aacfb4c56b49712cfd16e6.zip | |
[vcpkg-applocal] Ensure log for copied DLLs is created, even when no DLLs are copied.
This fixes a bug which caused all non-vcpkg-using builds to be considered out of date.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/buildsystems/msbuild/applocal.ps1 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/buildsystems/msbuild/applocal.ps1 b/scripts/buildsystems/msbuild/applocal.ps1 index 425c34961..932ba11cd 100644 --- a/scripts/buildsystems/msbuild/applocal.ps1 +++ b/scripts/buildsystems/msbuild/applocal.ps1 @@ -5,6 +5,12 @@ $g_searched = @{} # Note: installedDir is actually the bin\ directory. $g_install_root = Split-Path $installedDir -parent +# Ensure we create the copied files log, even if we don't end up copying any files +if ($copiedFilesLog) +{ + Set-Content -Path $copiedFilesLog -Value "" -Encoding Ascii +} + # Note: this function signature is depended upon by the qtdeploy.ps1 script introduced in 5.7.1-7 function deployBinary([string]$targetBinaryDir, [string]$SourceDir, [string]$targetBinaryName) { if (Test-Path "$targetBinaryDir\$targetBinaryName") { |
