Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-08-23 01:56:21


Hi Altec,

> How do we grab the value of CFLAGS and other non-environment settings so
> we can use them in conditionals?

How do you want to use values of CFLAGS in conditionals? Do you mean in
conditional requirements, or in actions? If in actions, you can use this:

ššrulešfooš(štargetsš*š:šsourcesš*š:šrequirementsš)
šš{šš
šššššššlocalšcflagsš=š[šonš$(targets)šreturnš$(CFLAGS)š]š;
šš}
ššactionšfooš
šš{šš
ššššššš//šsomethingš
šš}

But I'd be interested to learn why you need it -- maybe there's another way.

- Volodya

 


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