Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-16 06:25:33


John Maddock wrote:
> OK, sorry for the "simple" question, but how the heck are you supposed to
> concatenate two strings?
>
> I tried:
>
> VC80_ROOT ?= "$(VS80COMNTOOLS)"..\\.. ;
> VC_TOOL_PATH = "$(VC80_ROOT)"\\bin\\ ;
> VC_SETUP = "CALL \"$(VC_TOOL_PATH)VCVARS32.BAT\" >nul" ;
>
> But ended up with:
>
> "C:\Program..\.. Files\Microsoft..\.. Visual..\.. Studio..\..
> 8\Common7\Tools\..\..\bin\VCVARS32.BAT" >nul

I guess VS80COMNTOOLS is a multi-element list, because of embedded spaces. You
need to make a single string of it, with:

VC80_ROOT ?= "$(VS80COMNTOOLS:J= " ")"..\\.. ;

HTH,
Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk