From ff639ecc0291bd4a27aacfb4c56b49712cfd16e6 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Tue, 25 Apr 2017 17:49:13 -0700 Subject: [PATCH] [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. --- scripts/buildsystems/msbuild/applocal.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/buildsystems/msbuild/applocal.ps1 b/scripts/buildsystems/msbuild/applocal.ps1 index 425c34961c..932ba11cd7 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") {