Skip to content

Commit 605acb6

Browse files
Update install-cmake.ps1
1 parent 75ce2fd commit 605acb6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install-scripts/install-cmake.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Copyright (c) .NET Foundation and Contributors
22
# See LICENSE file in the project root for full license information.
33

4-
# This PS installs CMake
4+
# This PS installs the expected CMake version
55

6-
# default version is:
7-
[version]$version="3.23.0"
6+
# Default (expected) version (or below) is:
7+
[version]$version="3.31.0"
88

9-
# check if CMake is installed
9+
# Check if CMake is installed
1010
$cmake = (Get-Command "cmake.exe" -ErrorAction SilentlyContinue)
1111
if($cmake)
1212
{
13-
if($cmake.Version -ge $version)
13+
if(($cmake.Version -le $version)
1414
{
15-
"Skipping instal of CMake. Found v$version" | Write-Host -ForegroundColor Yellow
15+
"Skipping install of CMake. Found v$version" | Write-Host -ForegroundColor Yellow
1616

1717
exit 0
1818
}

0 commit comments

Comments
 (0)