Boost logo

Boost-Build :

From: Jaroslav Gresula (jgresula_at_[hidden])
Date: 2006-02-11 02:40:43


Vladimir Prus wrote:

> or you can combine indirect conditional requirements with <build>on
and the <source> feature like this:
>
> rule sources ( properties * )
> {
> if <variant>debug in $(properties)
> {
> return <source>a_d.cpp ;
> }
> else if <variant>release in $(properties)
> {
> return <source>a_r.cpp ;
> }
> else
> {
> return <build>no ;
> }
> }
>
> exe main : : <conditional>@sources ;
>
It seems to me that the <source> feature does not work for lib targets.
For instance, consider the following Jamfile:

lib mylib : : <source>main.cpp ;
exe myexe : : <source>main.cpp ;

Invoking 'bjam' on this file builds only the myexe target. Invoking
'bjam mylib' just prints '...found 3 targets...', but nothing actually
happens. Is this behavior intended or it is a bug?

Thanks,
Jarda.


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