Boost logo

Boost-Build :

Subject: Re: [Boost-build] project requirements in Jamroot --- how to make sure they propagate to sub-projects and other dependencies
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-01-11 05:19:14


Konstantin Litvinenko skrev:
> Thorsten Ottosen пишет:

>> I guess I can go to libs/test/build/ and say bjam
>> --define="_SECURE_SCL=0", although that is somewhat annoying.
>>
>> Does anybody have a better idea?
>>
>
> Define composite feature:
>
> feature.feature secure-stl : on off : propagated composite optional ;
> feature.compose <secure-stl>off : <define>_SECURE_SCL=0 ;
>
> and than use it:
>
> exe test : main.cpp lib1 : <secure-stl>off ;
>
> it will be applied to lib1 and all its dependencies.

Thanks! Does this also work if I use <secure-stl> in a project rule in
the Jamroot file?

-Thorsten


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