Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-15 02:52:00


On Tuesday 14 December 2004 19:43, David Abrahams wrote:
> In the project I posted recently, I needed some project-specific build
> rules. Or at least, I'm not ready to declare the rules general enough
> to use anywhere else yet. So I needed to make a module in the same
> directory as my project root. This is what I came up with:
>
> import modules ;
>
> # find out where we are
> .my-dir = [ modules.binding $(__name__) ] ;
>
> # Add that location to the BOOST_BUILD_PATH
> modules.poke : BOOST_BUILD_PATH
>
> : $(.my-dir:D)
>
> [ modules.peek : BOOST_BUILD_PATH ] ;
>
> Is that really the best we can do? Seems like an awful mess to me, and
> ordinary users are unlikely to come up with anything like it. Thoughts?

Did you try

import my_module ;

? That's supposed to work without any manipulation of BOOST_BUILD_PATH. This
surely works for my project.

- Volodya

 


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