Skip to content

Commit

Permalink
Update min CMake version for VS 2019 (#2766)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 authored Jul 24, 2020
1 parent d9289cf commit 098c3ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions check_cmake.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REM //---------- set up variable ----------
setlocal
set ROOT_DIR=%~dp0

set cmake_minversion_minmaj=" 3. 9"
set cmake_minversion_minmaj=" 3. 14"

set "cmake_version= . "

Expand Down Expand Up @@ -38,12 +38,12 @@ exit /b 0
:download_install
set /p choice="Press any key to download and install cmake (make sure to add it in path in install options)"

IF NOT EXIST %temp%\cmake-3.10.2-win64-x64.msi (
IF NOT EXIST %temp%\cmake-3.14.7-win64-x64.msi (
@echo on
powershell -command "& { iwr https://cmake.org/files/v3.10/cmake-3.10.2-win64-x64.msi -OutFile %temp%\cmake-3.10.2-win64-x64.msi }"
powershell -command "& { iwr https://cmake.org/files/v3.14/cmake-3.14.7-win64-x64.msi -OutFile %temp%\cmake-3.14.7-win64-x64.msi }"
@echo off
)

msiexec.exe /i "%temp%\cmake-3.10.2-win64-x64.msi"
msiexec.exe /i "%temp%\cmake-3.14.7-win64-x64.msi"

exit /b 1

0 comments on commit 098c3ac

Please sign in to comment.