From: Miguel A (ironphase_at_[hidden])
Date: 2005-08-26 09:42:17
Just in case anyone has this problem again, I thought on leaving a
quick note on how I resolved it for the time being.
In the Jamfile of my project I created a couple of new variants:
variant my_debug : <variant>debug <define>NO_MAYA_GUI ;
variant my_release : <variant>release <define>NO_MAYA_GUI ;
then I can build then like
bjam --v2 variant=my_debug
Unfortunately if you use a bjam lower than 3.1.11 I found the problem
than some command line flags are not processed. Like this:
bjam --v2 variant=my_debug --clear
will not clear the build targets, while this
bjam --v2 debug --clear
will work. So seems pretty clear it is a bug on the older versions of
bjam. Anyhow bjam 3.1.11 is working so far. It would be nice if one
could easily pass definitions on the command line without creating
variants, like it is the case with the bbv1, unfortunately I am not
getting any means to do that on bbv2.
--- In jamboost_at_[hidden], "Miguel A" <ironphase_at_y...> wrote:
> Hi there,
> I am using bjam 1.32 and so far I have not being able to figure out
> how to pass a define on the command line of bjam.
> With only one target I am able to do this:
> bjam --v2 target msvc/define=MY_DEFINE
> That works as long as only one target is specified. If there are
> multiple targets and a dist, and I try to build all targets with that
> define as in
> bjam --v2 msvc/define=MY_DEFINE
> This wont work.
> If I try to specify the dist (an stage to release all targets):
> bjam --v2 dist msvc/define=MY_DEFINE
> It will build the targets and stage the binaries but it ignores the
> Of couse I have try things like
> bjam --v2 define=MY_DEFINE
> and so....nothing works..
> Any ideas? Am I using this wrong or is this a bug in the build system?
> Thanks in advance
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