Boost logo

Boost-Build :

Subject: Re: [Boost-build] Logical AND for conditions
From: Norbert Wenzel (n_wenzel_at_[hidden])
Date: 2009-12-08 10:04:55

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?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at