|
Boost-Build : |
Subject: Re: [Boost-build] how to pass options to used projects ?
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2009-07-10 04:12:36
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_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
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