[CMake] Change Compiler flags for a single file.
Bill Lorensen
bill.lorensen at gmail.com
Wed Feb 27 23:42:23 EST 2008
That's how we do it in itk. It works just fine. How do you know it is
not working? To see the flags, go into your build tree, and look in
the file CMakeFiles/foo.dir/flags.make
What is the value of ${file}? I assume that ${file} is a file with a
.cxx (or .c) extension?
Bill
On Wed, Feb 27, 2008 at 11:22 PM, Surya Kiran Gullapalli
<suryakiran.gullapalli at gmail.com> wrote:
>
>
> 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
>
More information about the CMake
mailing list