Boost logo

Boost-Build :

Subject: [Boost-build] Creating own features without changing the compilation path
From: Max Moorkamp (mm489_at_[hidden])
Date: 2013-11-18 12:15:27


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have several parts of my libraries and programs that I only want to
compile under certain conditions. From searching the web and the boost
build documentation, user defined features seem to be the right thing
to achieve this. In fact, having something like

feature.feature gpu : off on : composite ;
feature.compose <gpu>on : <define>HAVEGPU ;

feature.feature lapack : off on : composite ;
feature.compose <lapack>on : <define>HAVELAPACK ;

and some conditional requirements do the job. However, each of these
features results in an addition to the output path, e.g.

MT/bin/gcc-4.6/release/gpu-on/lapack-on/threading-multi/MTCovar_test

Now, I should have a few more of these features to enable/disable some
non-essential but desirable parts of the code on certain machines by
which time the path will become very convoluted. I understand the idea
behind the paths, but in my case on a given machine compilation will
happen with the same set of features, so it is perfectly acceptable to
me to recompile everything if I change the value of a feature.

Is there a way to switch this behavior off? Is there an alternative
that does what I want?

Thanks for any pointers

Max

- --
This message, its contents and related information will be analyzed by
NSA, GCHQ and most likely others. No information in this message can
therefore be regarded as confidential. If you want to communicate with
me confidentially, please contact me about encrypted communication.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSiksvAAoJEPGnJUm5Ir26NZgH/AjcMxIk9rk6sMOK2e6H8q7q
8HCB1/ilNJnIbPZaG6VOVLs9FfWcXkhXJGTWac32WqmGg5TbrJUdme8wLJCsDINr
m3tZEY/wc1YGMZ9Jirs6adGoW5kmSpsy0rL9O2Dpvnhr+dvSZ+mco/6pRV0e6g/J
IiAcMIx6yEvA52vI/ZMJPWn3/EMjlRr3pwLD0kUPjBar/ZDDkfHZFs04rCJiqpVj
uqkbbE9ipKab7WtwAE8EVq2vVSH7Yogm6hkHZKRNygaoxHYjHt+XFvLhGDUHaUAC
VPDKvkU6qFWQ0R/l+CA5QeybABjRjjEVNWFtoG6o50MZzQtLhCR06ECWM+Y1E9Y=
=ObOu
-----END PGP SIGNATURE-----


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