|
Boost-Build : |
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2007-05-29 15:02:19
Hi Lawrence !
On Dienstag 29 Mai 2007, Lawrence Spector wrote:
> I'm having an issue where I can't use the Windows Environment
> variables in the JamRoot file.
> When, in reality, my preference would be this:
> # Specify the path to the Boost project. If you move this project,
> # adjust the path to refer to the Boost root directory.
> use-project boost
> : $(BOOST_ROOT);
>
> However, when I take the second approach, I get the following errors:
That's because environment variables are not import by default. You have
to explicitly do it. Just put
import os ;
local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;
use-project /boost : $(BOOST_ROOT) ;
into your Jamroot. Or put it in user-config.jam or site-config.jam for
all projects :-))
This is explained in the manual at
http://boost.org/boost-build2/doc/html/bbv2/faq/envar.html
> My boost-build.jam seems to take the environment variable with no
> issue.
Yes, boost-build.jam behaves differently. It evaluates the environment
to set up the build system. Slightly different magic ;-)) Look at the
docs for the details, please.
> Thanks in advance,
You're welcome.
Hope this helps,
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister StraÃe 15 * juergen.hunold_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
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