Boost logo

Boost-Build :

Subject: Re: [Boost-build] relative paths in subprojects
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-03-04 05:26:03


Евгений Шубин wrote: > I have a hierarchic structure in my project: > project > |__Jamroot > |__subproject1 > |____Jamfile > |____... > |__subproject2 > |____Jamfile > |____... > |__subproject3 > |____Jamfile > |____... > |__... > . > > When I run bjam in toplevel project, "path.pwd" in Jamfiles of subprojects >shows me that current directory is path where i have run bjam. > > So, all relative paths in Jamfiles are invalid. They are only valid, when bjam >is run in subproject`s directory. > > Is there any way to use relative paths in such manner? path-constant is your friend: http://www.boost.org/boost-build2/doc/html/bbv2/reference/rules.html HTH, Gevorg


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