Boost logo

Boost-Build :

Subject: Re: [Boost-build] Can I include environment variables in user-config.jam?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-05-12 10:45:14


AMDG

On 05/12/2011 07:22 AM, Nogradi, Chris wrote:
> 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" ;
>

All of this can go in user-config.jam.

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