Subject: Re: [Boost-build] path-constant does not work inside project-config.jam
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-11-19 02:47:40
Johan Nilsson wrote:
> I'm trying to use project-config.jam to extend BOOST_BUILD_PATH for my
> entire project. However, it seems like when using path-constant here,
> path remains relative to the current working directory.
> Some more details:
> - I have a custom toolset, e.g. x.jam, that I'd like to use within my
> - I've got a boost "extension" catalog located under
> <Jamroot>/src/tools/build/boostbuildext, where x.jam is located.
> - Inside project-config.jam I'd like to init the toolset; e.g. "using
> x : <version> ;"
> - Using Boost.Build/Boost.Jam from trunk.
> When building from root, the toolset can be found by adding this to
> beginning of project-config:
> path-constant boost-build-ext-path : src/tools/build/boostbuildext ;
> local boost-build-path = [ modules.peek : BOOST_BUILD_PATH ] ;
> modules.poke : BOOST_BUILD_PATH : $(boost-build-ext-path)
> $(boost-build-path) ;
> However, when building from a subproject, boost-build-ext-path is set
> e.g. "<Jamroot>/path/to/subproject/src/tools/build/boostbuildext". It
> like the project-config module isn't initialized in the same way as
> Jamfiles are.
> Any workarounds? I'd really prefer not to rely on environment
> / Johan
> Unsubscribe & other changes:
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