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.


-----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. -
-- rrivera/ - grafik/
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
Unsubscribe & other changes:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at