Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-07-25 02:18:09


> When building release vs debug, the .obj directories are automatically
> different so I don't have to do a clean build when switching between
> them. This works great so I'm wondering if a similar feature exists to
> work with a specific <define>.
> Basically, I'm trying to avoid having to do a clean build when switching
> between 'standard' and 'professional' builds of the project which is
> controlled by a <define>.
> I'd like these preprocessor-controlled 'standard' and 'professional'
> builds to use a separate dir for .obj files during the build.
> Any suggestions or workarounds would be deeply appreciated.

There's no way to represent "define" in build path, however you can created
your own new features and make it expand to desired defines. Like this:

import feature ;
feature.feature djb-build-kind : standard professional : propagated
composite ;
feature.compose <djb-build-kind>standard : <define>STANDARD_BUILD ;
feature.compose <djb-build-kind>professional :


Vladimir Prus
Boost.Build V2:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at