Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-16 01:41:51

Hi Emil,
> I have the following in my Jamroot:
> project
> : requirements
> <include>src
> <include>ext
> <include>sys/$(TARGET-PLATFORM)
> <link>static
> <toolset>msvc:<version>8.0 <cflags>-wd4996
> <toolset>gcc <cflags>-Wno-non-virtual-dtor

> When I build with gcc, I properly get the -Wno-non-virtual-dtor
> warning disabled; however I also get a warning that -wd4996 is
> unknown command line option. Obviously, I want -wd4996 to kick-in
> only for msvc 8.0.

No doubt -- you don't use any "toolset-specific requirements" or how they
are exactly named, "conditional" requirements. You just add unconditional
requirements <cflags>-wd4996 and <cflags>-Wno-non-virtual-dtor

Did you read:

which gives the exact syntax?

For msvc, you'd use: <toolset>msvc-8.0:<cflags>-wd4996

- Volodya


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