make.bat : check for existence of ninja before using it.

This commit is contained in:
Ray Molenkamp 2018-06-05 10:39:39 -06:00
parent 5e44324b79
commit cd58ce85c2
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,9 @@
ninja --version 1>NUL 2>&1
if %ERRORLEVEL% NEQ 0 (
echo "Ninja not detected in the path"
exit /b 1
)
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -G "Ninja" %TESTS_CMAKE_ARGS% -DCMAKE_BUILD_TYPE=%BUILD_TYPE%
if "%WITH_CLANG%" == "1" (