Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-05-08 07:32:59

Peter Steiner wrote:
> On Wed, 8 May 2002 06:46:00 -0500, David Abrahams wrote:
> >> I'd like to have as few environment variables as possible and be able to
> >> each of them from the command line.
> >
> > ^---------------- ?? I think there's a verb missing right here.
> Yes, that verb would be 'override'

If you're carefull, its easy to override vars from command line. For example,
if your Jamrules contain

TOOLS ?= borland ;

then it will use the value passed from environment/command line, if there's
such value.

> > We are deemphasizing the use of command-line variables for
> > v2. If you're trying to set the JAMBASE programmatically from an
> > environment variable I might suggest a forwarding script, jjam.bat:
> >
> > @echo off
> > jam -f%JAMBASE% %*
> I don't _want_ to use environment or command line variables. I'd like
> most if I could set just JAM_TOOLSET and JAMBASE in a local file
> (Jamrules?). But if a have set no environment variables, jam complains
> about a missing JAM_TOOLSET.

Sorry, should have stated it more clearly: don't use "jam.exe", use only
"bjam.exe", which will never complain about "JAM_TOOLSET", just because
that variable is never used by Boost.Build. There's no point in setting
JAMBASE, either. Instread, you should set boost build path as I've described
in another message.

- Volodya


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