make.bat : check for existence of ninja before using it.
authorRay Molenkamp <github@lazydodo.com>
Tue, 5 Jun 2018 16:39:39 +0000 (10:39 -0600)
committerRay Molenkamp <github@lazydodo.com>
Tue, 5 Jun 2018 16:39:39 +0000 (10:39 -0600)
build_files/windows/configure_ninja.cmd

index d3b002e9a24e15fc8b9fd3be7c41154f1ed17fd1..224d761adf6af8ef4697c6cb91c5af098aa9e448 100644 (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" (