Boost logo

Boost-Build :

Subject: Re: [Boost-build] Can I force a property to be propagated?
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2010-01-19 06:37:12

John Maddock wrote:
> I'm trying to figure out if a project can "refine" another project by
> forcing some properties to be propagated to it.
> In doc/pdf/Jamfile.v2 I basically just do an install of boostbook
> targets declared elsewhere. But I want to be able to specify that those
> boostbook targets are built with some specific properties.
> If I add:
> project : requirements <xsl:param>something ;
> to the Jamfile, then the xsl:param only gets applied to the boostbook
> targets declared in that Jamfile (fair enough).
> If I add the <xsl:param>something property to the main install rule,
> it still doesn't get propagated to the dependent boostbook targets.
> So is there another way?

Would it be possible to use some technique similar to this:

project foobar ;
exe test : main.cpp ;
# NOTE: We need to specify location here in order to avoid
# the "duplicate targets" problem.
alias test2 : test/<location>bin2/<define>FOOBAR=2 ; # or 
install bin
I know it's not literally what you're looking for, but you might be able to 
adapt it to your needs.
Regards / Johan 

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