[CMake] compiler option for one source file?

j s j.s4403 at gmail.com
Sun Aug 16 16:16:28 EDT 2009


I have some warning messages I need to suppress from a generated source file
from flex.  Is there a way to add a compiler flag for just one source file
in a target?  The specific flag I'd like to add for gcc is
Wno-unused-function

Which applies to static functions in the compilation unit.

Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090816/37e8845d/attachment.htm>


More information about the CMake mailing list