|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-04-29 01:15:59
On Friday 29 April 2005 10:01, DJB wrote:
>
> I'm using the following in the above snippet, $(WX_LIB) is populated
> depending on the command line args. This seems to work but is clearly a
> kludge.
>
> if release in [ modules.peek : ARGV ] {
> WX_LIB = $(WX_RELEASE_LIB) ;
> } else {
> WX_LIB = $(WX_DEBUG_LIB) ;
> }
The canonic way is:
lib wx : : <name>wx_debug <variant>debug ;
lib wx : : <name>wx_release <variant>release ;
Essentially, this will add -lwx_debug to linker opiton when you're building
debug version and -lwx_release in release version.
-- 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