Re: [CMake] include_directories(SYSTEM, GNU.cmake and -isystem for C (not CXX)

2011-06-13 Thread Brad King
On 06/11/2011 02:08 AM, Campbell Barton wrote: To follow up on this, I tested this on a test project and found the problem was in my own macro which wasn't initializing an include list. So only the set(CMAKE_INCLUDE_SYSTEM_FLAG_C -isystem ) remains which should be fixed in CMake but is easy

Re: [CMake] include_directories(SYSTEM, GNU.cmake and -isystem for C (not CXX)

2011-06-09 Thread Michael Hertling
On 06/08/2011 07:26 AM, Campbell Barton wrote: There were some system headers giving warnings compiling on linux, since I like to have warnings as errors, and not edit system headers, I used: include_directories(SYSTEM dir1 dir2 ...) ... for system directories only. However this does not

[CMake] include_directories(SYSTEM, GNU.cmake and -isystem for C (not CXX)

2011-06-07 Thread Campbell Barton
There were some system headers giving warnings compiling on linux, since I like to have warnings as errors, and not edit system headers, I used: include_directories(SYSTEM dir1 dir2 ...) ... for system directories only. However this does not result in -isystem being used in C because GNU.cmake