Subject: Re: [Boost-build] Dependency on Boost libs causes problems (Was: Dependency problem with tests run with executable created by another target)
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-10 10:59:51
On Tuesday 10 February 2009 11:58:10 Sven Van Echelpoel wrote:
> we managed to narrow down the possible causes until we came to a
> dependency on the Boost libraries. In every sub-project we include a
> file (attached, boost-libraries.jam) that gives us some aliases to
> libraries from the Boost distribution that we use. It is the inclusion
> of this file that is causing the problem. More specifically it is this line:
> use-project /boost-libs : $(BOOST_ROOT) ;
> Commenting this out make the problem go away. We even managed to reproduce this in the toy project (also attached). Knowing this, the question has changed:
The problem here is that loading of Boost Jamfiles causes some features to be defined and since they
have default values, added to default properties. You appear to build the same target twice --
once before including boost, and once after, so they build results differ in those properties.
This is unfortunately, but fixing this might take more than 5 minutes.
> * Can we include files like this in every sub-project (we do this a
> lot with other components too), or does it need to be done differently?
I'd suggest to put all 'use-project' statements in the Jamroot -- does that help?
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