Boost logo

Boost-Build :

Subject: Re: [Boost-build] Adding custom name decoration to libraries
From: Braden Northington McDaniel (braden_at_[hidden])
Date: 2011-12-01 16:57:24


On Dec 1, 2011, at 3:10 PM, Steven Watanabe wrote:

> On 12/01/2011 11:57 AM, Braden Northington McDaniel wrote:
>> On Dec 1, 2011, at 4:42 AM, Juergen Hunold wrote:
>>
>>> Hi Braden,
>>>
>>> You may need to import your environment variables now.
>>>
>>> For HOME this is:
>>>
>>> import os ;
>>> local HOME = [ os.environ HOME ] ;
>>> echo home $(HOME) ;
>>
>>
>> Thanks, but unfortunately I misspoke. MY_DECORATION is not an environment variable; it's a constant defined in user-config.jam:
>>
>> constant MY_DECORATION : foo ;
>
> In that case:
>
> import modules ;
>
> local MY_DECORATION =
> [ modules.peek user-config : MY_DECORATION ] ;
>
> constants are only visible in sub-projects, so
> using MY_DECORATION directly broke when boostcpp
> was split off from Jamroot.

That was it. Thank you!

-- 
Braden McDaniel
e-mail/Jabber IM: braden_at_[hidden]
http://endoframe.com

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