Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-27 02:47:36


Hi Konstantin,

> I am using boost.Build v2 to build my projects and I have faced up with
> a problem. When i try to build library, say foo, that uses boost/date_time,
> that in turn define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG, it builds
> without last one, even if i have specified date_time in project's
> usage-requirements. It leads to broken library and all programs that uses
> foo doesn't works.
> Can anyone helps me?

Yes. The problem is rather simple. If you have

<library>@/boost/date_time/boost_date_time

in usage requirements of "foo" then usage requirements of date_time will be
applied only to targets that use "foo". The "foo" target will be built as
usual. To achieve the effect you want, it's necessary to and

<dependency>@/boost/date_time/boost_date_time

to *requirements* section as well. That would signify that your library uses
date_time library and usage requirement will be propagated.

I've wrote a document which describe all this some time ago, but it never
ended in docs :-(

HTH,
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