[CMake] compiler option for one source file?

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


I apologize I found SET_SOURCE_FILES_PROPERTIES which has a non-pluralized
analog of GET_SOURCE_FILE_PROPERTY.

Juan

On Sun, Aug 16, 2009 at 3:16 PM, j s <j.s4403 at gmail.com> wrote:

> 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/80d4fd19/attachment-0001.htm>


More information about the CMake mailing list