|
Boost-Build : |
Subject: Re: [Boost-build] how to pass options to used projects ?
From: Gaydov Victor (victor.gaydov_at_[hidden])
Date: 2009-07-10 06:59:57
Juergen Hunold wrote:
> Hi Victor,
>
> On Thursday 09 July 2009 13:06:11 Gaydov Victor wrote:
>
>> hello!my jamfile contains something like this:
>>
>> project myproj : requirements <variant>debug:<define>_GLIBCXX_DEBUG ;
>>
>> use-project /boost : $(BOOST_PATH) ;
>> exe main : ...... /boost//program_options ;
>>
>> the problem is that i can't pass '<define>_GLIBCXX_DEBUG' to /boost
>> project. is there a way to do it ?
>>
>
> No, unfortunately not.
>
> I usually use a custom variant for this:
>
> variant cxxdebug : <optimization>off
> <debug-symbols>on
> <inlining>off
> <runtime-debugging>on
> <define>_GLIBCXX_DEBUG ;
>
> Just put this in user-config.jam (or maybe site-config.jam or your Jamroot)
> and then call bjam cxxdebug.
>
> This will (re-)build everything with the correct settings...
>
> Yours,
>
> Jürgen
>
aha, thanks
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