ci: make sure choco cpack does not interfere with CMake cpack

[skip ci]
This commit is contained in:
James McCoy 2021-10-30 11:49:15 -04:00
parent c819ce1fd4
commit c84b86fe3d
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,9 @@ if (-not $NoTests) {
}
}
# Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's
Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force
# Build artifacts
cpack -G ZIP -C RelWithDebInfo
if ($env:APPVEYOR_REPO_TAG_NAME -ne $null) {