From e93b203b8708f72c4a222b10147c3a615161857b Mon Sep 17 00:00:00 2001 From: walker0643 <> Date: Tue, 6 Feb 2018 17:13:35 -0500 Subject: [PATCH] rmdir doesn't set errorlevel but mkdir does and can be used to check for errors up to that point...to a point --- clean_build_windows.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clean_build_windows.bat b/clean_build_windows.bat index 577eacb8..fd54d248 100644 --- a/clean_build_windows.bat +++ b/clean_build_windows.bat @@ -15,11 +15,11 @@ if exist winbuild_env.bat call winbuild_env.bat rmdir /q /s build mkdir build +if ERRORLEVEL 1 goto failed cd build cmake -G "Visual Studio 15 2017 Win64" -D CMAKE_BUILD_TYPE=%B_BUILD_TYPE% -D CMAKE_PREFIX_PATH="%B_QT_ROOT%" -D DNSSD_LIB="%B_BONJOUR%\Lib\x64\dnssd.lib" .. if ERRORLEVEL 1 goto failed echo @msbuild barrier.sln /p:Platform="x64" /p:Configuration=%B_BUILD_TYPE% /m > make.bat -REM echo @if errorlevel 1 exit 1 >> make.bat call make.bat if ERRORLEVEL 1 goto failed if exist bin\Debug ( @@ -55,4 +55,4 @@ set B_QT_ROOT= set B_BONJOUR= cd /d %savedir% -set savedir= \ No newline at end of file +set savedir=