Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-09-30 12:41:54

On Monday 25 September 2006 12:40, Michael Krasnyk wrote:
> Bojan Resnik wrote:
> > You could use the <conditional> feature to add requirements
> >dynamically. More information about this feature can be found at
> Thanks, it works for me.
> But one more question. Is it possible
> to use some "global" properties and initialize global path variable, like
> path-constant STAGE_DIR : $(stage-locate) ;

I don't quite understand this question. Do you want 'stage-locate' to be
dynamically computed? No, that's no possible:

> I need it, because in subprojects the variable is used as:
> install stage
> : $(lang)
> : <location>$(STAGE_DIR)/locale/$(lang)/LC_MESSAGES
> <name>
> ;

Again, you can use conditional requirements. To avoid duplicating those
requirements everywhere, you can either use project requirements, or new main
target rule 'my-stage' that does that:


Vladimir Prus
Boost.Build V2:

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