Skip to content
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions install-scripts/install-cmake.ps1
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.

# This PS installs CMake
# This PS installs the expected CMake version

# default version is:
[version]$version="3.23.0"
# Default (expected) version (or below) is:
[version]$version="3.31.6"

# check if CMake is installed
# Check if CMake is installed
$cmake = (Get-Command "cmake.exe" -ErrorAction SilentlyContinue)
if($cmake)
{
if($cmake.Version -ge $version)
if($cmake.Version -eq $version)
{
"Skipping instal of CMake. Found v$version" | Write-Host -ForegroundColor Yellow
"Skipping install of CMake. Found v$version" | Write-Host -ForegroundColor Yellow

exit 0
}
Expand Down