We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef16e86 commit 188ec7eCopy full SHA for 188ec7e
WebKitDev/Functions/Install-CMake.ps1
@@ -30,7 +30,12 @@ Function Install-CMake {
30
31
$major, $minor, $patch = $version.split('.');
32
33
- $url = ('https://cmake.org/files/v{0}.{1}/cmake-{2}-win64-x64.msi' -f $major, $minor, $version);
+ # CMake releases moved to GitHub in 3.20
34
+ if (([int]$major -ge 4) -or (([int]$major -eq 3) -and ([int]$minor -ge 20))) {
35
+ $url = ('https://github.com/Kitware/CMake/releases/download/v{0}/cmake-{0}-windows-x86_64.msi' -f $version)
36
+ } else {
37
+ $url = ('https://cmake.org/files/v{0}.{1}/cmake-{2}-win64_x64.msi' -f $major, $minor, $version);
38
+ }
39
40
$options = @(
41
'ADD_CMAKE_TO_PATH="System"'
0 commit comments