Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to compile sub directories with relative paths (like make)
From: Bart³omiej Chalfen (Bartlomiej.Chalfen_at_[hidden])
Date: 2012-01-02 14:14:05


> ---------- 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]

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