From e86f95eb10e555a2a4e011cfe2942412f12c05c5 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sat, 30 Oct 2021 11:49:15 -0400 Subject: [PATCH] ci: make sure choco cpack does not interfere with CMake cpack [skip ci] (cherry picked from commit c84b86fe3dce633b551dc395d2c07ff40e6fb42c) --- ci/build.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/build.ps1 b/ci/build.ps1 index 53e4328e02..a2d7d4fcdc 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -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) {