On Thu, Feb 28, 2008 at 10:12 AM, Bill Lorensen <[EMAIL PROTECTED]>
wrote:
> 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 as
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
On Thu, Feb 28, 2008 at 9:34 AM, Bill Lorensen <[EMAIL PROTECTED]>
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.
SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES COMPILE_FLAGS -O0)
On Wed, Feb 27, 2008 at 10:21 PM, Surya Kiran Gullapalli
<[EMAIL PROTECTED]> wrote:
> Hello all,
> I'm building a project, where in one compilation of one file gets stuck due
> to optimization flag (-O3) with gcc. I want to turn off
Hello all,
I'm building a project, where in one compilation of one file gets stuck due
to optimization flag (-O3) with gcc. I want to turn off the optimization
flag for that particular file only.
I've done this.
STRING (REPLACE "-O3" "" remove_opt_flag ${CMAKE_CXX_FLAGS_RELEASE})
SET_SOURCE_FILES