Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Build] problem including jamfiles
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-21 21:58:20


AMDG

Lee Winter wrote:
> Given a project tree like this:
>
> top/
> jamfile.jam # contains "include top.jam ;"
> top.jam
> sub/
> jamfile.jam # contains "include sub,jam ;"
> sub,jam
>
> then in top/sub bjam complains there is no such file as top.jam.
>
> Clearly the ancestral jamfiles are being processed in the directory in
> which bjam is launched rather than in their respective directories.
>
> 1. Is this intentional? If so, what is the rationale?
>
> 2. Is there a work-around such that the parental jamfile can include
> another file from its location?
>

I really suggest using import, as it is much better behaved than include.

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