forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove, rpclib as submodule, download from git release, cmake install…
… enhancements
- Loading branch information
Showing
7 changed files
with
112 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "external/rpclib"] | ||
path = external/rpclib | ||
url = https://github.com/rpclib/rpclib.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@echo off | ||
REM //---------- set up variable ---------- | ||
setlocal | ||
set ROOT_DIR=%~dp0 | ||
|
||
set cmake_minversion_minmaj=" 3. 9" | ||
|
||
set "cmake_version= . " | ||
|
||
where /q cmake | ||
if %ERRORLEVEL% EQU 0 ( | ||
for /F "tokens=3" %%a in ('cmake --version ^| find "cmake version"') do set cmake_version=%%a | ||
if "%cmake_version%" == "" ( | ||
echo Unable to get version of cmake. >&2 | ||
exit /b 2 | ||
) | ||
) else ( | ||
echo cmake was not found in path. | ||
goto :download_install | ||
) | ||
|
||
set cmake_ver_major= | ||
set cmake_ver_minor= | ||
for /F "tokens=1,2 delims=." %%a in ("%cmake_version%") do ( | ||
set "cmake_ver_major= %%a" | ||
set "cmake_ver_minor= %%b" | ||
) | ||
set cmake_ver_minmaj="%cmake_ver_major:~-4%.%cmake_ver_minor:~-4%" | ||
if %cmake_ver_minmaj% LSS %cmake_minversion_minmaj% ( | ||
echo( | ||
echo Newer AirSim requires cmake verion %cmake_minversion_minmaj% but you have %cmake_ver_minmaj% which is older. >&2 | ||
goto :download_install | ||
) | ||
|
||
echo Found cmake version: %cmake_version% | ||
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 ( | ||
@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 }" | ||
@echo off | ||
) | ||
|
||
msiexec.exe /i "%temp%\cmake-3.10.2-win64-x64.msi" | ||
|
||
exit /b 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule rpclib
deleted from
9885c0