Boost logo

Boost-Build :

Subject: Re: [Boost-build] Conditional properties on the command line?
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-03-11 11:53:58


>> Is there a way to specify conditional properties on the command line if
>> I'm
>> building with multiple toolsets?
>>
>> For example if I'm building with
>>
>> bjam toolset1 toolset2
>>
>> and want to add additional include paths that are different for each of
>> the
>> two toolsets?
>
> You can use:
>
> bjam toolset=gcc/include=foo toolset=msvc/include=bar
>
> That's not really conditional per se -- but seems like what you're after.

Pretty much, that almost gets it, but what I actually need is to set 2
properties separately for each toolset (include=path1 and search=path2), and
I can't guess the syntax if there is one? BTW the above syntax doesn't seem
to be documented?

Many thanks, John.


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