|
Boost-Build : |
From: Konstantin M. Litvinenko (gclbb-jamboost_at_[hidden])
Date: 2003-05-27 04:45:27
Hello, Vladimir!
You wrote on Tue, 27 May 2003 13:22:56 +0400:
>> to lib tmp, than lib foo will build with boost/date_time defines.
>> But
VP> Are you sure that "lib foo" will build with boost/date_time define.
VP> You must have meant "lib tmp" --- you did not arrive to "lib foo"
VP> yet.
:) Sorry.
VP> IOW, you have
VP> exe bar <- lib foo <- lib tmp
Yes.
VP> The "tmp" lib uses boost/date_time, so it should have
VP> <dependency>@/boost/date_time/boost_date_time in requirements
VP> But, it also wants all libraries/exes which use it to link to the
VP> same library. So, it must have
VP> <library>@/boost/date_time/boost_date_time in usage requirements.
VP> Here's Jamfile which can illustrate my point:
VP> lib foo : foo.cpp :
VP> <dependency>../libs/date_time/build/boost_date_time : :
VP> <library>../libs/date_time/build/boost_date_time ;
VP> lib bar : bar.cpp : : : <library>foo ;
VP> exe hello : hello.cpp bar ;
VP> Here, everything will be compiled with proper includes.
No, lib bar doesn't compiles with boost/date_time defines I just have
checked.
With best regards, Konstantin M. Litvinenko aka Dark Angel. E-mail:
darkangel_at_[hidden]
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