|
Boost-Build : |
Subject: Re: [Boost-build] How to adjust/redefine default variants "debug", "release" and "profiling"
From: Anthony Foglia (AFoglia_at_[hidden])
Date: 2009-11-11 13:06:21
Deniz Bahadir wrote:
> Thanks Anthony,
>
>> I don't know exactly what you have in mind, but if all your builds are done
>> in the same project, you can add the define, you can add the define to the
>> list of requirements.
>>
>> project
>> : requirements
>> <variant>debug:<define>DEBUG
>> ;
>
> I am working at a bigger project with different directories,
> subdirectories, different libraries and executables. As far as I
> understand, I have probably more than one project. (I think by
> definition each Jamfile in each of my subdirectories is a project for
> its own. But I want the main settings like variants etc. be set
> "globally" in the Jamroot file and be propageted to all Jamfiles.)
I believe the settings in the first Jamroot above the Jamfile will
propagate downward. That seems to be our experience, though I can't say
we did more than a cursory check. We do have similar requirements in
our Jamroot and they seem to propagate downwards to all our executables.
Perhaps they can be overridden though.
It's a little confusing because a project can contain projects. But I
think I got it.
-- Anthony Foglia Princeton Consultants (609) 987-8787 x233
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