Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-22 07:51:26

usrlocalinfo wrote:

> If I have a bunch of "#ifdef _PROTECT" blocks in my code, what is the
> best way to define it or undefine it from the command-line using
> v2?

bjam define=_PROTECT

> I'd like to make the setting apply to all the projects and all the
> toolsets by simply using the command-line.

The above only works for "directly requested" targets, which are the targets
in the current project and all the projected referred by "build-project".

They do no apply to projects used via target references in sources, eg. in

exe a : a.cpp /some/other//lib ;

the other lib won't be built with _PROTECt.



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