[CMake] Change Compiler flags for a single file.

Surya Kiran Gullapalli suryakiran.gullapalli at gmail.com
Wed Feb 27 23:22:29 EST 2008


On Thu, Feb 28, 2008 at 9:34 AM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES COMPILE_FLAGS -O0)
>

Nope, It did not work.
Cmake is not using the compile flags for that specific file. That file is
compiled with CMAKE_CXX_FALGS_RELEASE (like other files.)

In general,
Can't we  change the compile flags for a paritcular file?

Surya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080228/eec716e3/attachment.htm


More information about the CMake mailing list