Fixed configuration check in MPIR.Net pre-build events

This commit is contained in:
Alex Dyachenko 2019-06-23 15:32:48 -04:00
parent b4bd481606
commit 1d485140eb

View File

@ -1,7 +1,7 @@
@echo off
rem %1 = platform
rem %2 = configuration
rem %3 - msvc version
rem %3 - last two digits of Visul Studio version (e.g. 17)
rem output_params.bat contains:
rem (set ldir=architecture)
@ -10,7 +10,8 @@ rem (set plat=x64)
rem (set conf=Release)
call :clrerr
if exist ..\..\build.vc\output_params.bat (call ..\..\build.vc\output_params.bat) else (call :seterr & echo ERROR: 'output_params.bat' not found & exit /b %errorlevel%)
if exist ..\..\msvc\output_params.bat (call ..\..\msvc\output_params.bat) else (call :seterr & echo ERROR: 'output_params.bat' not found & exit /b %errorlevel%)
if /i "%libr%" NEQ "lib" (call :seterr & echo ERROR: MPIR.Net requires a static library build of MPIR & exit /b %errorlevel%)
if /i "%1" EQU "%plat%" if /i "%2" EQU "%conf%" (exit /b 0)