$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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