Boost logo

Boost-Build :

From: Jaroslav Gresula (jgresula_at_[hidden])
Date: 2006-02-05 06:31:19


Could someone advise me how to retrieve value of a feature within a
rule? I followed an example from the docs which uses the toolset.flags
rule but with no luck.

Below is my attempt, but the TOOLSET variable expands to an empty string.

---
local rule this-module-rule ( ) { return [ CALLER_MODULE ] ; }
local this-module = [ this-module-rule ] ;
import toolset ;
toolset.flags $(this-module).print-toolset TOOLSET : <toolset> ;
rule print-toolset ( )
{
   ECHO $(TOOLSET) ;
}
alias main : : [ print-toolset ] ;
Thanks,
Jarda

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