Boost logo

Boost-Build :

From: Jan Langer (jan_at_[hidden])
Date: 2005-07-26 11:32:22

I have a problem using v2 m10. I have the Jamfile below
which builds an executable test. Now I want to build it with the gmp
library when I enable the feature with-gmp. However, it does not work,
because gmpxx will depend on itself. Is there a way to make all targets
(except this lib) to depend on gmpxx? Or is this approach just not the
right way? I cannot just put the gmpxx dependency into the requirements
of test, because in the real environment there are several targets in
different subdirectories and I just dont want to add the dependency to
each subproject.


import feature : feature compose ;

lib gmpxx : : <search>$GMPROOT/lib
: : <include>$GMPROOT/include ;

feature with-gmp : off on : propagated composite ;
feature.compose <with-gmp>on : <define>DD_USE_GMP <source>gmpxx ;

project dd ;

exe test : test.cpp ;



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