Boost logo

Boost-Build :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-09-07 16:28:31

K. Noel Belcourt wrote:
> Is there some documentation on how to modify Boost build to add new
> command line options?

Not that I know of.

> I'd like to know where and how to add options
> when using bjam v2 head. I want to make these command line arguments
> available to the project Jamfiles and would prefer command line
> arguments to requiring users to set environment variables. Something
> like
> bjam --v2 --builddir=/my/derived/files --materialdir=/my/material/
> library
> I've looked at what's done in the Boost distribution but from what I
> can tell, it seems to require modifications to the Jambase, which I'd
> rather avoid if possible. Any ideas?

No need to change Jambase... There's a global var "ARGV" which holds all
the arguments. Take a look at how the Boost Jamfile.v2
handles all the options it uses.

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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