From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-04-28 01:33:20
On Thursday 28 April 2005 03:21, DJB wrote:
> Here is the Jamfile (parent Jamfile excluded to keep things simple).
> With 'bjam --v2 debug ...' command, this should not even attempt the
> release build with the following Jamfile, correct?
> For some reason, it is attempting both the debug and release builds.
> static-lib myDialogs
> : [ glob *.cpp ] [ glob *.h ] [ glob *.rc ]
> : <variant>release
If you run "bjam --v2 debug", this main target will still be built, but in
release mode. The target requirements override build request given on the
command line. Is this what you asking about?
If you also add:
alias myDialogs : : <variant>debug ;
then there would be two alternatives for myDialogs -- the first one will build
static lib, but only if you've requested release build. The second ("alias")
will do absolutely nothing, and used in debug mode.
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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