Boost logo

Boost-Build :

Subject: Re: [Boost-build] Can I include environment variables in user-config.jam?
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2011-05-12 10:22:51

I use the following from within jamroot.jam but I am not an expert and I did see a comment once about 'using' needing to be called earlier than jamroot.jam, however I have not seen any issue with this yet:

import toolset ;
import os ;

local programFiles = [ os.environ "ProgramFiles(x86)" ] ;
programFiles ?= [ os.environ "ProgramFiles" ] ;

toolset.using msvc : myver : "$(programFiles)/Microsoft Visual Studio 8/VC/bin/cl.exe" ;


-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Michael Krajnak
Sent: Thursday, May 12, 2011 9:00 AM
To: boost-build_at_[hidden]
Subject: [Boost-build] Can I include environment variables in user-config.jam?

I'm currently building boost with stlport.

In order to do this I made various changes to user-config.jam file based
on a variety of examples I found on the net.

Those changes include things like the following:

using stlport : 5.2.1 :
D:/dev/stlport/stlport :
D:/dev/stlport/libx86 ;

I would like to replace the string D:/dev/stlport with an environment
variable, but I can't get this to work. I've seen various discussions
about this on some of the boost forums, including some that suggested
that user-config.jam might not be the best place to do this, but never
an example that I could follow completely.

Could someone provide a complete example of how to include an
environment variable in user-config.jam? Or if there is a
recommendation for a different way to achieve the same effect I'd be
glad to give it try.


Unsubscribe & other changes:

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.

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