Thank you both,

I am sure a feature would make more sense (hard to tell, the documentation of the tool being what it is, not even sure I actually found it) but I alway try to spend as little time as possible on b2 (or bjam, I don't know).
I'll go with a command line combination of toolset, cxxflags and location-prefix.

Thanks again!

Alain

On 17/10/2016 20:05, Chambers, Matthew wrote:
The <location-prefix> feature in the 'requirements' section of a target will set a different directory in case you don't want to go as far as creating a custom <feature>. But in this case the custom feature makes more sense IMO.

-Matt


On 10/17/2016 10:24 AM, Paulo Márcio Figueiredo Alves wrote:

To achieve that, I've created a propagated feature cpp11 that accepts on and off, and configured those options with cxxflags, enabling or disabling c++11 features.


Em Seg, 17 de out de 2016 12:38, alainm <alain.miniussi@oca.eu> escreveu:

Hi,

I need to be able to switch between C++11 build and old style C++ build.
Is there an easy way to do that ?
The object files should be dropped in different directories and b2
should understand that if the file was not compiled with the same
option, it should be rebuilt (and that should be propagated to the
dependencies).

Basically I need something similar to what I would get using 2 different
build dirs with CMake.

Thanks