Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-11 02:27:01


Hi Motonari,

> Is there a way to change the build-dir based on the current debug/
> release mode?
>
> Something like:
> ------
> if $(mode) = debug {
> project : build-dir path/to/debug_output ;
> } else {
> project : build-dir path/to/release_output ;
> }
> ------
>
> I understand that the default build path has debug/release distinction
> such as "bin/msvc-8.0/debug", but I want to change the root of the build
> path, to work with a legacy system.

Just curious, what are the paths to debug and release output in your legacy
system? In what way "build-dir some-path" does not work?

Answering your question, you can't get 'mode'. Jamfile is read only once, and
build request can include debug,release,profile and a bunch of other
combination at the same time.

Maybe, you can use the 'stage' rule to move the generated files to the
directory you like?

- Volodya

 


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