We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ce2fd commit 605acb6Copy full SHA for 605acb6
install-scripts/install-cmake.ps1
@@ -1,18 +1,18 @@
1
# Copyright (c) .NET Foundation and Contributors
2
# See LICENSE file in the project root for full license information.
3
4
-# This PS installs CMake
+# This PS installs the expected CMake version
5
6
-# default version is:
7
-[version]$version="3.23.0"
+# Default (expected) version (or below) is:
+[version]$version="3.31.0"
8
9
-# check if CMake is installed
+# Check if CMake is installed
10
$cmake = (Get-Command "cmake.exe" -ErrorAction SilentlyContinue)
11
if($cmake)
12
{
13
- if($cmake.Version -ge $version)
+ if(($cmake.Version -le $version)
14
15
- "Skipping instal of CMake. Found v$version" | Write-Host -ForegroundColor Yellow
+ "Skipping install of CMake. Found v$version" | Write-Host -ForegroundColor Yellow
16
17
exit 0
18
}
0 commit comments