Boost logo

Boost-Build :

From: Zbynek Winkler (zw-bjam_at_[hidden])
Date: 2005-11-15 05:33:35


Vladimir Prus wrote:

>>I have tried adding:
>>
>>feature.compose <variant>debug : <define>_DEBUG ;
>>
>>to msvc.jam (actually, msplatformsdj.jam) and get:
>>
>>F:/devel/bbv2/build\feature.jam:585: in feature.compose from module feature
>>error: components of <variant>debug already set: <optimization>off
>><debug-symbols>on <inlining>off <runtime-debugging>on
>>
>>Q: How do I add to an already composed feature?
>>
>>
>You can't. That's why NDEBUG define is specified in the definition of
>"release" variant and not later.
>
>
If there is some "base project" where all user projects are "inherited"
from, you could say:
project
        : requirements
                <variant>debug:<define>_DEBUG
        ;
And that would effectively do what you what.

Zbynek

-- 
http://zw.matfyz.cz/     http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic

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