Re: [cmake-developers] -isystem suppresses warnings from user header

2016-04-07 Thread Tamás Kenéz
Thanks! I missed that property. Tamas On Thu, Apr 7, 2016 at 4:13 PM, Brad King wrote: > On 04/07/2016 10:03 AM, Tamás Kenéz wrote: > > CMake uses "-isystem" on the compiler command line for the > > INTERFACE_INCLUDE_DIRECTORIES of imported libraries. > > > > Question: is this the intended behav

Re: [cmake-developers] -isystem suppresses warnings from user header

2016-04-07 Thread Brad King
On 04/07/2016 10:03 AM, Tamás Kenéz wrote: > CMake uses "-isystem" on the compiler command line for the > INTERFACE_INCLUDE_DIRECTORIES of imported libraries. > > Question: is this the intended behaviour? Yes. See discussion here: * http://thread.gmane.org/gmane.comp.programming.tools.cmake.dev

[cmake-developers] -isystem suppresses warnings from user header

2016-04-07 Thread Tamás Kenéz
Environment: CMake 3.5, linux, g++ CMake uses "-isystem" on the compiler command line for the INTERFACE_INCLUDE_DIRECTORIES of imported libraries. Unfortunately including a header via an isystem path suppresses warnings emitted from the header, such as warnings caused by expansions of macros defi