Skip to content

Commit f1f1051

Browse files
authored
Merge pull request #78000 from compnerd/yolo
utils: drop cmake version check
2 parents 95c3011 + 1d1ecb4 commit f1f1051

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

utils/build.ps1

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -926,20 +926,6 @@ function Append-FlagsDefine([hashtable]$Defines, [string]$Name, [string[]]$Value
926926
}
927927
}
928928

929-
function Test-CMakeAtLeast([int]$Major, [int]$Minor, [int]$Patch = 0) {
930-
if ($ToBatch) { return $false }
931-
932-
$CMakeVersionString = @(& cmake.exe --version)[0]
933-
if (-not ($CMakeVersionString -match "^cmake version (\d+)\.(\d+)(?:\.(\d+))?")) {
934-
throw "Unexpected CMake version string format"
935-
}
936-
937-
if ([int]$Matches.1 -ne $Major) { return [int]$Matches.1 -gt $Major }
938-
if ([int]$Matches.2 -ne $Minor) { return [int]$Matches.2 -gt $Minor }
939-
if ($null -eq $Matches.3) { return 0 -gt $Patch }
940-
return [int]$Matches.3 -ge $Patch
941-
}
942-
943929
function Test-SCCacheAtLeast([int]$Major, [int]$Minor, [int]$Patch = 0) {
944930
if ($ToBatch) { return $false }
945931

@@ -2853,9 +2839,6 @@ try {
28532839
Fetch-Dependencies
28542840

28552841
if (-not $SkipBuild) {
2856-
if (-Not (Test-CMakeAtLeast -Major 3 -Minor 28)) {
2857-
throw "Minimum required CMake version is 3.28"
2858-
}
28592842
if ($EnableCaching -And (-Not (Test-SCCacheAtLeast -Major 0 -Minor 7 -Patch 4))) {
28602843
throw "Minimum required sccache version is 0.7.4"
28612844
}

0 commit comments

Comments
 (0)