Boost logo

Boost-Build :

From: Lawrence Spector (Lawrence.Spector_at_[hidden])
Date: 2007-05-29 16:10:14


Excellent. That worked great! Thanks for the tip.

-Lawrence

-----Original Message-----
From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Rene Rivera
Sent: Tuesday, May 29, 2007 3:58 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Using Environment Variables in
Boost.BuildJamRoot file

Lawrence Spector wrote:
> Now, if I want
> to put it in site-config.jam as you suggested, what other steps are
> there so that the Jamroot file can use the contents of
> site-config.jam. I tried putting the import os; and local BOOST_ROOT
> = [ os.environ BOOST_ROOT ] ; into the site-config file, but my
> Jamroot file was not able to see the variables. What I gathered from
> reading is that all jam files have their own namespaces. How do you
> "export" something into the global namespace then?

You can:

import os;
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;

I think.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build

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