Boost logo

Boost-Build :

Subject: Re: [Boost-build] variant propagation
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-02 10:37:07


AMDG

Jan Boehme wrote:
> #Jamfile begin
>
> use-project boost : $(BOOST) ;
>
> variant 1 ;
> variant 2 ;
>
> alias incl: : <variant>1 : : <include>h1 <define>I1 ;
> alias incl: : <variant>2 : : <include>h1 <define>I2 ;
>
> lib base : [ glob *.cpp ] incl /boost//filesystem
> /boost//serialization /boost//program_options /boost//date_time ;
>
> exe e1 : base/<variant>1 ;
> exe e2 : base/<variant>2 ;
>
> #Jamfile end
>
> The problem with this is that the boost libs are built twice, one time
> for variant '1' and once more for variant '2' One can see I want the
> behavior of propagating the variant to "incl" and I don't want it to
> be propagated to the boost libs.
> Is there a chance to 'reset' variants for targets manually or does
> anyone see another way to solve my problem without going into the
> depths of "Duplicate name of actual target".

<variant> is probably not the right tool for your task.
Try a new feature:

import feature : feature ;
feature myfeature : 1 2 : propagated ;

In Christ,
Steven Watanabe


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