Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to compile sub directories with relative paths (like make)
From: Häfemeier, Frank (frank.haefemeier_at_[hidden])
Date: 2012-01-04 12:18:40


it seems the trick. But this is not documented in this way (Page 36) or rather not correct understand by me.
Thanks for the tip. Now we have to reconfigure our jamfiles to work properly.


-----Ursprüngliche Nachricht-----
Von: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] Im Auftrag von Bartlomiej Chalfen
Gesendet: Montag, 2. Januar 2012 20:14
An: boost-build_at_[hidden]
Betreff: Re: [Boost-build] How to compile sub directories with relative paths (like make)

> ---------- Wiadomo¶æ przekazana dalej ----------
> From: "\"Häfemeier, Frank\"" <frank.haefemeier_at_[hidden]>
> To: <boost-build_at_[hidden]>
> Cc:
> Date: Mon, 2 Jan 2012 10:29:12 +0100
> Subject: Re: [Boost-build] How to compile sub directories with relative paths (like make)
> Hi Chris,
>> It looks like $(PATH_BUILD) is the culprit.  How do you set that variable and is it a relative or absolute path?
> This was my first thoughts, but PATH_BUILD is set to a relative path, in our caseto '../Server'.
> It seems to me, as boost build is working from configuration/calling point of view with relative paths, but internally all relative paths are resolved to absolute paths.

If you define PATH_BUILD as 'path-constant' it automatically becomes
an absolute path. But the project definition you have shown does not
influence the path used for sources - it uses PATH_BUILD only to set
the target location of object files and the dependency on Jamroot. Can
you show how you define your 'lib' or 'exe' targets? Do you use
PATH_BUILD there as well? If the relation between your
Jamroot/Jamfiles and sources location is fixed you can specify
relative paths in lib sources (or in project source-location
property). Or if it's too long/complicated you can define normal
constant or variable containing relative path to your sources.

Bart³omiej Chalfen
GG: 2585725
JID: charfa_at_[hidden]
Unsubscribe & other changes:
Think green - keep it on the screen.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

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