Boost logo

Boost-Build :

Subject: Re: [Boost-build] [boost.build] Reducing warnings on system headers, -isystem vs -I
From: Brian Dahlquist (bwdahlquist_at_[hidden])
Date: 2009-09-24 21:50:08


>> Anyway to specify no warnings for these headers (or compile w/ -isystem) ? I tried playing with
>> the project : <warnings>off stuff, but it seemed a little too powerful - no errors at all!
>Hi Brian,
>
>can you try this:
>
> lib dx_d3d9 : : <name>d3d9 <search>$(path_to_lib) : : <cflags>"-isystem $(path_to_include)" ;
>
>- Volodya

This gets it right, thanks!

I had a few problems with my path because it had spaces in it, was surrounded in quotes, and the quotations were removed. Fixed with escapes on the variable:

local path_to_include = \""C:/Program Files (x86)/.../Include"\" ;

      


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