|
Boost-Build : |
Subject: Re: [Boost-build] Order of include directories in Boost Build
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-02-11 03:37:26
On Friday, February 11, 2011 01:31:07 Edward Diener wrote:
> In a sandbox project, which has many of the same header files as a
> same-named Boost distribution directory, I want to run the tests so that
> the include directories are picked up first from the sandbox project and
> then from the Boost distribution which BOOST_ROOT and/or BOOST point to.
>
> I even put a jamfile in the top-level sandbox directory which is:
>
> project sandboxlibrary
>
> : requirements
>
> <include>.
> <include>$(BOOST_ROOT)
>
> build-dir bin.v2
> ;
>
> Yet when i try to run the tests the include directory order is:
>
> "-IC:\Programming\VersionControl\boost"
>
> "-IC:\Programming\VersionControl\sandbox\sandboxlibrary"
>
> In other words Boost Build is setting up the command line so that the
> Boost distribution comes before the sandbox directory when looking for
> include files. Naturally this causes the tests to fail since the changes
> in the include files are not being picked up from the sandbox directory
> first.
>
> Is this a deficiency or a bug in Boost Build ? Is there any way to work
> around this problem ?
>
> It does seem as if one should always be able to run Boost Build from an
> outside directory not within a Boost distribution, still picking up
> files as necessary from a Boost distribution, and having the sandbox
> files found first before the Boost distribution files.
Please try:
<include>.&&$(BOOST_ROOT)
The jury is still out as to whether requiring to explicitly specify order
in such cases is good or bad idea.
HTH,
-- 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