[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.
This commit is contained in:
Robert Schumacher 2017-04-25 17:49:13 -07:00
parent 9775cfff1d
commit ff639ecc02

View File

@ -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") {