Boost logo

Boost-Build :

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


Hi,
I have a problem using boost.build 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.
Jan

Jamfile.v2
------------------------------------------

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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk