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:
http://boost.org/boost-build2/doc/html/bbv2/tutorial/conditions.html

which gives the exact syntax?

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

- Volodya

 


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