Boost logo

Boost-Build :

Subject: Re: [Boost-build] Logical AND for conditions
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-12-08 12:49:39


Norbert Wenzel wrote:

> On 12/08/2009 01:29 PM, Vladimir Prus wrote:
>> Norbert Wenzel wrote:
>>> I'm sure this is mentioned in the docs, but I didn't find it.
>>>
>>> The example from the documentation on page "Conditions and alternatives" describes the situation
>>> when you need a specific define to build your library.
>>>
>>> lib network : network.cpp
>>> :<link>shared:<define>NEWORK_LIB_SHARED
>>> ;
>>>
>>> I was wondering, how I would tell BB to only define the NEWORK_LIB_SHARED for windows. I've
>>> tried
>>>
>>> <target-os>windows:<link>shared:<define>NEWORK_LIB_SHARED
>>
>> Please use
>>
>> <target-os>windows,<link>shared:<define>NEWORK_LIB_SHARED
>
> Thanks for your fast response. Since you didn't post a link to the docs
> am I safe to assume that the described syntax isn't mentioned
> explicitely? Would the cited "Conditions and alternatives" page be the
> right page to also mention your example, since I think this might be a
> common task when building libraries across multiple platforms?

It's actually in the docs, at http://www.boost.org/boost-
build2/doc/html/bbv2/reference/definitions.html#bbv2.reference.variants.propcond

However, that place is extra hard to find, and I agree that this should be fixed.

- 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