« Return to Thread: how to pass options to used projects ?

Re: how to pass options to used projects ?

by Gaydov Victor-2 :: Rate this Message:

Reply to Author | View in Thread

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

 « Return to Thread: how to pass options to used projects ?