Boost logo

Boost-Build :

Subject: Re: [Boost-build] Basic bjam issues
From: Alexander Sack (pisymbol_at_[hidden])
Date: 2008-10-10 15:56:31


Ok nevermind, I took off the implicit which was killing me. Is any of
this documented anywhere? I just want to make sure I'm looking at the
right set of doc.

-aps

On Fri, Oct 10, 2008 at 3:52 PM, Alexander Sack <pisymbol_at_[hidden]> wrote:
> On Thu, Oct 9, 2008 at 11:55 AM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>>> - Why can't I use multiple build variants? I want to be able to build
>>> my project with certain features defined (i.e #define's). If I try to
>>> define a build variant for each one via:
>>>
>>> variant feature_support1 : <define>feature1 ;
>>> variant feature_support2 : <define>feature2 ;
>>>
>>> etc. I want to be able to turn them on and off from bjam command line
>>>
>>
>> variants are considered mutually exclusive. The idea is that
>> bjam ... debug release will do both debug and release builds.
>>
>> I suppose that you can make a separate feature for each.
>>
>> feature feature_support1 : off on : implicit composite propagated ;
>> feature.compose <feature_support1>on : <define>feature1 ;
>>
>> bjam feature_support1=on
>
> Alright but now this doesn't work for multiple features. Bjam claims
> that "off" or "on" are already values for another feature.
>
> All I have a couple of defines that are project wide that need to be
> turned on or off depending whether the use wants them. I mean I
> suppose I could try to use variants and setup build profiles but I
> thought this would be a lot more straight forward than it has been.
>
> Isn't this pretty common?
>
> -aps
>


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