From d095bfecde5335fc430b945b922b655a870a3356 Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Wed, 3 Feb 2016 22:16:50 +0200 Subject: [PATCH] Fix command-line argument parsing in run-cmake.bat and build-all.cmd --- win/build-all.cmd | 13 ++++++++++--- win/run-cmake.bat | 13 +++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/win/build-all.cmd b/win/build-all.cmd index fab1b422a8..00f9e779a7 100644 --- a/win/build-all.cmd +++ b/win/build-all.cmd @@ -22,16 +22,23 @@ :: build-ifcopenshell and install-ifcopenshell. The rest of the arguments are passed for run-cmake. :: Usage example for doing an optimized vs2015-x64 build with debug information and using IFC 4: :: > build-all.cmd vs2015-x64 RelWithDebInfo -DUSE_IFC4=1 -DENABLE_BUILD_OPTIMIZATIONS=1 + @echo off -for /f "tokens=2,* delims= " %%a in ("%*") do set ALL_BUT_FIRST_TWO=%%b +setlocal EnableDelayedExpansion +call vs-cfg.cmd %1 +if not %ERRORLEVEL%==0 GOTO :Error :: Use "yes" trick to break the pause in build-deps.cmd echo y>y.txt call .\build-deps %1 %2