run-cmake.bat & build-all.cmd: fix cmake arguments parsing when arguments passed for the batch scripts

This commit is contained in:
Stinkfist0
2016-02-06 18:48:18 +02:00
parent 178c34fb22
commit 33772a4710
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ del .\y.txt
if not %ERRORLEVEL%==0 goto :EOF
:: Same trick as in run-cmake.bat
set ARGUMENTS=%*
call set ARGUMENTS=%%ARGUMENTS:%1=%%
call set ARGUMENTS=%%ARGUMENTS:%2=%%
if not (%1)==() call set ARGUMENTS=%%ARGUMENTS:%1=%%
if not (%2)==() call set ARGUMENTS=%%ARGUMENTS:%2=%%
call .\run-cmake %1 %ARGUMENTS%
if not %ERRORLEVEL%==0 goto :EOF
call .\build-ifcopenshell %1 %2