Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-10-09 09:06:12

David Abrahams wrote:
> Vladimir Prus <ghost_at_[hidden]> writes:
>>I'm currently about to implement "use-requirements", which are
>>requirements propagated to targets that use one which specifies
> That last phrase makes no sense to me. Can you show an example of
> where those requirements are propagated to, say, in conjunction with
> the code below?

I'll use more concrete example. Boost.date_time requires that any code
that uses it set DATE_TIME_INLINE defines. This might be conveniently
implemented this way:

lib date_time : ..... : use-requirements <define>DATE_TIME_INLINE ;

if somebody writes:

exe calendar : calendar.cpp @/boost/date_time/date_time ;

then <define>DATE_TIME_INCLUDE will be applied when compiling calendar.cpp

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at