Boost logo

Boost-Build :

Subject: Re: [Boost-build] Finding the Boost root directory in sandbox libraries and within a Boost tree
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-11-29 03:02:32


On Monday, November 29, 2010 05:06:46 Edward Diener wrote:

> Is there any easier way that a sandbox directory can find the Boost root
> without either of these machinations, so that when the end-user tries to
> use the jamfiles of a sandbox library from within its sandbox directory,
> or moves it under a Boost tree, it sets a bjam local variable to the
> Boost tree root correctly in either case ?

In case of libraries inside Boost trunk, the variable that gives root location
inside Jamfiles is called BOOST_ROOT. I suppose it's reasonable to make
the variable be called the same inside sandbox. In fact, it appears to be
already the case. When I get myself a sandbox checkout, go to
'example' subdirectory and go:

        bjam --boost=/home/ghost/Work/Boost/boost-svn

I see that BOOST_ROOT is indeed set to boost root.

Therefore, what questions remain?

1. Do you want to be able to set an environment variable, say BOOST_ROOT,
and avoid that --boost option?

2. Do you want to be able to detect where Boost root is, without either option
or an environment variable (this is not possible in all cases).

3. Something else?

Thanks,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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