Boost logo

Boost-Build :

From: DJB (usrlocalinfo_at_[hidden])
Date: 2005-04-27 18:21:23


DJB wrote:
> I'm using <variant>debug and <variant>release to build .exe without
> problems.
>
> But when I try to do the same with static-lib, it appears that <variant>
> is completely ignored (at least related to debug vs release). It simply
> tries to build both.
>
> Compiler used is msvc-7.1
>
> I can post some snippets if others are unable to reproduce this.
>
> Thanks.
>

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.

8<--------------------
project myDialogs
: requirements
<user-interface>gui
<define>"_WINDOWS"
<define>"wxUSE_GUI=1"
<define>"NOPCH"
<define>"__WXMSW__"
<include>"C:/src/wxWidgets-2.6.0/include"
<include>"C:/src/wxWidgets-2.6.0/contrib/include"
<variant>debug:<define>"__WXDEBUG__"
<variant>debug:<include>"C:/src/wxWidgets-2.6.0/lib/vc_lib/mswd"

<variant>release:<include>"C:/src/wxWidgets-2.6.0/lib/vc_lib/msw"
;

#release
static-lib myDialogs
: [ glob *.cpp ] [ glob *.h ] [ glob *.rc ]
: <variant>release
;

#debug with different filename
static-lib myDialogsd
: [ glob *.cpp ] [ glob *.h ] [ glob *.rc ]
: <variant>debug
;

8<--------------------

 


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