Echo commands and exit on error
+echo ON
+
mkdir build
cmake -G "%CMAKE_GENERATOR%" -H. -Bbuild ^
@@ -10,6 +12,10 @@ cmake -G "%CMAKE_GENERATOR%" -H. -Bbuild ^
-DCLINGO_BUILD_WITH_LUA=OFF ^
-DCLINGO_MANAGE_RPATH=OFF ^
-DCMAKE_INSTALL_BINDIR="."
+if errorlevel 1 exit 1
cmake --build build --config Release
+if errorlevel 1 exit 1
+
cmake --build build --config Release --target install
+if errorlevel 1 exit 1
