Boost logo

Boost-Build :

Subject: [Boost-build] Order of include directories in Boost Build
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-02-10 17:31:07


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.


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