Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-10-15 08:08:46


Austin Bingham wrote:
> > 1. "build-project subdir" ;
> > 2. use-project /some_id : /subdir ;
> >
> > With M8, both load "subdir/Jamfile" for a second time -- which is really
> > bad. With my local fixes, the first case works ok. The second case,
> > though, breaks.
> >
> > The question: is this second case really necessary? I implicitly assumed
> > that most times use-project will refer to projects with other project
> > root. In this example, that "subdir" should contain a project-root.jam
> > file.
> >
> > Opinions?
>
> It seems like it should be pretty straightforward to construct a set of
> Jamfiles to load before actually loading any of them (since you can find a
> project root without parsing Jamfiles). This way you can cut out
> load-duplication. This may be too simplistic, but it seems to address part
> of the problem.

The problem is that "use-project" is allowed in Jamfile, too, and I think it's
a good idea. It's still possible to make "use-project" work, anyway. I was
wondering about use-cases for "use-project" where used project does not have
a separate project-root.jam. In my settings, I use "use-project" for
dependedies on boost, and some local, relatively standalone libraries, which
all have their own project-root.jam. So I wonder if other case is reasonable/
needed.

- Volodya

Of course, it is possible to delay processing of "use-project" directives
until

 


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