Skip to content

Commit

Permalink
Fix MPI installation in batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahtwo committed Sep 19, 2023
1 parent eca36e9 commit fd62b8d
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions REQUIREMENTS/Install_SDL.bat
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
@echo off

REM -----------------------------
REM TO EXECUTE IN ADMIN MODE ONLY
REM -----------------------------
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
cd /d %~dp0

ECHO ---------------
ECHO INSTALL MPIEXEC
ECHO ---------------
echo You will need administrator privileges for installation
REM MPI is needed for installing MPI packages with vcpkg
"MPI WINDOWS INSTALLER.exe" -unattend

ECHO check if git is installed
git --version >nul 2>&1
IF errorlevel 1 (
ECHO -------------------------------------------------------
ECHO GIT IS NOT INSTALLED. PLEASE INSTALL GIT AND TRY AGAIN.
ECHO -------------------------------------------------------
pause
exit
) ELSE (
ECHO -----------------
ECHO GIT IS INSTALLED.
ECHO -----------------
)

ECHO ------------------
Expand All @@ -35,11 +32,8 @@ vcpkg install sdl1:x86-windows
vcpkg install mpi:x64-windows
vcpkg install mpi:x86-windows
vcpkg integrate install
ECHO ---------------
ECHO INSTALL MPIEXEC
ECHO ---------------
"MPI WINDOWS INSTALLER.exe" -unattend

ECHO --------------------------------------------------
ECHO ALL IS INSTALLED, YOU CAN NOW LAUNCH VISUAL STUDIO
ECHO --------------------------------------------------
timeout 8

0 comments on commit fd62b8d

Please sign in to comment.