diff --git a/mpir.net/build.vc/check_config.bat b/mpir.net/build.vc/check_config.bat index e3640bcb..09dad8d5 100644 --- a/mpir.net/build.vc/check_config.bat +++ b/mpir.net/build.vc/check_config.bat @@ -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)