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.


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 <> escreveu:


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

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



Alain Miniussi
Pole Génie Logiciel Scientifique
Observatoire de la Côte d'Azur
Blv de l'Observatoire, Nice

Unsubscribe & other changes:

Unsubscribe & other changes: