2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Allow specifying options with quotes, i.e. "--with-python=xyz", to work around the CMD shell using "=" as an argument separator.

[SVN r40095]
This commit is contained in:
Rene Rivera
2007-10-16 19:08:58 +00:00
parent 86e98a42e7
commit 24ed5b7a0c
2 changed files with 5 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ goto :eof
:Test_Option
REM Tests wether the given string is in the form of an option: "-*"
REM Tests wether the given string is in the form of an option: "--*"
setlocal & endlocal
setlocal
set test=%1
@@ -48,7 +48,7 @@ set test=###%test%###
set test=%test:"###=%
set test=%test:###"=%
set test=%test:###=%
if not [-] == [%test:~0,1%] set _error_=
if not [-] == [%test:~1,1%] set _error_=
endlocal
goto :eof

View File

@@ -55,13 +55,15 @@ if $(with-python)
{
--python-lib ?=
[ GLOB [ .path $(python-location) libs ] : "python$(v).lib" ]
[ GLOB $(python-location) $(Path) $(PATH) $(path) : "python$(v).dll" ]
[ GLOB $(python-location) [ .path $(python-location) libs ]
$(Path) $(PATH) $(path) : "python$(v).dll" ]
;
if ! $(--python-lib[2])
{
--python-lib = ;
}
}
--python-lib = $(--python-lib[1]) ;
}
else if $(OS) = MACOSX
{