Boost logo

Boost-Build :

Subject: Re: [Boost-build] Alias falling through from jamroot to jamfile
From: Phillip Seaver (phil_at_[hidden])
Date: 2010-01-11 07:43:36

Christian Auby wrote:
> Scenario: exe is defined in Jamroot, depends on two libs, one of the
> libs depend on the other lib. They are placed like this:
> Jamroot
> /lib1
> /lib2
> I'd like to not have to use ../lib1//lib_awesome inside lib2 as the
> Jamfile for lib2 would have to change if lib1 is placed somewhere else.
> Inside the Jamroot I have an alias:
> alias lib_awesome : lib1//lib_awesome ;
> but it doesn't carry to the Jamfile in lib2. Is there a way to do this?
> That way the Jamroot would be responsible of knowing where all the libs are.
> regards,
> Christian
> _______________________________________________
> Unsubscribe & other changes:

If lib_awesome is the only library defined in lib1's Jamfile, you should
be able to use "use-project /lib_awesome : lib1 ;" in your Jamroot and
refer to it as "/lib_awesome" Otherwise, "use-project /lib1 : lib1 ;"
and use "/lib1//lib_awesome" should work.

Depending on how you have things set up, this may work for you -- I
didn't feel like maintaining a list of "use-project" statements, so I do
it automatically.


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