how to pass options to used projects ?

View: New views
3 Messages — Rating Filter:   Alert me  

how to pass options to used projects ?

by Gaydov Victor-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ? i tried /boost//program_options/<define>_GLIBCXX_DEBUG, but it didn't help.


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

Re: how to pass options to used projects ?

by Juergen Hunold-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
--
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold@...        ! www.ivembh.de
*
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: how to pass options to used projects ?

by Gaydov Victor-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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