Boost logo

Boost-Build :

Subject: Re: [Boost-build] Question about using condition in bjam
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-08-27 02:15:12


Carfield Yim wrote:
> Vladimir Prus-3 wrote:
>>
>> Carfield Yim wrote:
>>
>>>
>>> Thanks a lot, the syntax error are fixed now. However, in fact it
>>> cannot use
>>>
>>> if toolset = "gcc"
>>>
>>> The determine if I am using GCC / SunCC, it just always go to "else"
>>> cases,
>>> would you help to point how can I determine if I am using GCC or
>>> not?
>>
>> Did you read the FAQ entry I have posted a link to?
>>
>>
> I have... but not really understand.... is that mean I cannot do that
> in Jamroot?

You can achieve the desired effect, just not in the way you've tried to do
it.

In Volodyas posted link, note the statement "Use conditional requirements or
indirect conditional requirements. See the section called "Requirements"."

HTH / Johan


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