Skip to content

Commit

Permalink
updated CMake version on Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Apr 24, 2024
1 parent 454c1ca commit 357dcd1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/mod_cmake.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Import-Module "${SCRIPT_DIR}\mod_utils.psm1"
### Variables
###

[Version]$CMAKE_VERSION = '3.26.4'
[Version]$CMAKE_VERSION = '3.29.2'
[Version]$CMAKE_VERSION_MINIMUM = '3.14'

###
Expand Down Expand Up @@ -61,8 +61,7 @@ function Install-Cmake {
Invoke-WebRequest "https://cmake.org/files/v${VersionMajMin}/${Installer}" -OutFile ".\temp\${Installer}"
Start-Process -FilePath ".\temp\${Installer}" -Wait -NoNewWindow
Remove-ItemSilent -Path ".\temp\${Installer}"
}
else {
} else {
Write-Error "Error: CMake version ${CMAKE_VERSION_MINIMUM} or greater is required, but was neither found nor installed." -ErrorAction Continue
Invoke-Fail -ErrorMessage "Error: Failed to install CMake."
}
Expand All @@ -84,8 +83,7 @@ function Test-CmakeVersion {
# install CMake if it is less than the required version
Write-Error "Error: $($Program) version $($CurrentVersion) is less than the minimum supported." -ErrorAction SilentlyContinue
Install-Cmake
}
else {
} else {
Write-Output "Success: CMake version test passed."
}
}
Expand Down

0 comments on commit 357dcd1

Please sign in to comment.