Skip to content

Commit

Permalink
[Build] Replace use of 7-zip in cppbuild.ps1 with the PowerShell buil…
Browse files Browse the repository at this point in the history
…t-in Expand-Archive.
  • Loading branch information
mikeb01 committed Oct 21, 2024
1 parent a5195d8 commit e7709ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cppbuild/cppbuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ $CmakeBuildParallelLevel = [Environment]::ProcessorCount
$DeleteBuildDir = $true
$BuildConfig = "Release"

#foreach ($arg in $Args)
for ($i = 0; $i -lt $Args.count; $i++)
{
$arg = $Args[$i]
Expand Down Expand Up @@ -168,7 +167,7 @@ try
$client.DownloadFile("https://github.com/Kitware/CMake/releases/download/v$CMakeVersion/cmake-$CMakeVersion-windows-x86_64.zip", "$PSScriptRoot\cmake-$CMakeVersion-windows-x86_64.zip")

Push-Location $PSScriptRoot
7z x "cmake-$CMakeVersion-windows-x86_64.zip"
Expand-Archive -LiteralPath "cmake-$CMakeVersion-windows-x86_64.zip" -DestinationPath "$PSScriptRoot"
Remove-Item "cmake-$CMakeVersion-windows-x86_64.zip"
Pop-Location
}
Expand Down

0 comments on commit e7709ac

Please sign in to comment.