[CMake] how can I filter compiler warnings?
Ryan Pavlik
rpavlik at iastate.edu
Fri May 7 13:43:38 EDT 2010
The best way to is to add the compiler flags needed to disable that
warning in the first place.
Ryan
On 05/07/2010 12:29 PM, Kevin Burge wrote:
> I need to be able to filter warnings out of the compilation output
> from specific files:
>
> "/usr/include/pthread.h", line 990.27: 1506-450 (I) Obsolete
> non-prototype-style function declaration.
> "/usr/include/pthread.h", line 1049.42: 1506-450 (I) Obsolete
> non-prototype-style function declaration.
> "/usr/include/pthread.h", line 1050.42: 1506-450 (I) Obsolete
> non-prototype-style function declaration
>
> On our old build system, we replaced cc with a ruby script that
> filtered the output. I never did figure out the way to do this with
> cmake. I'd rather have cmake filter it if it can.
>
> Please let me know if there's a way to do this.
>
> Thank you,
> Kevin Burge
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University
rpavlik at iastate.edu
http://academic.cleardefinition.com
More information about the CMake
mailing list