Boost logo

Boost-Build :

Subject: Re: [Boost-build] Question about using condition in bjam
From: Matthew Chambers (matthew.chambers_at_[hidden])
Date: 2009-08-24 11:58:28


If you see an error like that it generally means you missed a delimiter
or messed up the spacing. Spaces are required between all tokens:

if toolset = "gcc" { } else { }

-Matt

Carfield Yim wrote:
> I know it is very basic, but I figure it out when reading manual. Say
> my project need to compile on GCC and Sun Studio, and for GCC it only
> work for oracle 9 and for Sun Studio it work for oracle 10. I try to
> have something like:
>
>
>
> if(toolset = "gcc"){
>
> use-project /Oracle : /oracle/9.2.0 ;
>
> }else{
>
> use-project /Oracle : / oracle/10.2.0 ;
>
> }
>
>
>
> But it complaint about
>
>
>
> ../../../Jamroot:33: syntax error at keyword :
>
>
>
> However from manual it look like it is suggesting syntax like that.
> Would someone help to clarify?
>


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