|
Boost-Build : |
Subject: Re: [Boost-build] How to use command line option -s?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-08-06 21:09:53
AMDG
Boris Schaeling wrote:
> I'm trying to set a variable with the command line option -s:
>
> bjam -sx=y
>
> The Jamfile contains:
>
> ECHO $(x) ;
>
> I would expect to see y but I get an empty line. Isn't -s meant to set
> any variables? How do I set a variable on the command line?
x is defined in the global module, not any Jamfile's module,
so you have to use
ECHO [ modules.peek : x ] ;
In Christ,
Steven Watanabe
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