Boost logo

Boost-Build :

From: Lawrence Spector (Lawrence.Spector_at_[hidden])
Date: 2007-05-29 12:57:12


I'm having an issue where I can't use the Windows Environment variables
in the JamRoot file. I'm having to do 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

  : C:/3rdparty/boost_1_34_0 ;

 

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:

 

bjam toolset=msvc --verbose-test test

Jamroot:8: in modules.load

*** argument error

* rule use-project ( id : where )

* called with: ( boost : )

* missing argument where

C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:951:see
definition of

rule 'use-project' being called

C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:312: in
load-jamfile

C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:68: in load

C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:170: in
project.find

C:/3rdparty/boost_1_34_0/tools/build/v2\build-system.jam:237: in load

C:\3rdparty\boost_1_34_0\tools\build\v2/kernel\modules.jam:261: in
import

C:\3rdparty\boost_1_34_0\tools\build\v2/kernel/bootstrap.jam:132: in
boost-build

 

E:\quicktest\boost-build.jam:7: in module scope

 

My boost-build.jam seems to take the environment variable with no issue.
I do this:

 

# Copyright David Abrahams 2006. Distributed under the Boost

# Software License, Version 1.0. (See accompanying

# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

 

# Edit this path to point at the tools/build/v2 subdirectory of your

# Boost installation. Absolute paths work, too.

boost-build $BOOST_ROOT/tools/build/v2 ;

 

 

Any ideas?

 

Thanks in advance,

 

Lawrence



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