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_PROPERTIES (${file} PROPERTIES CMAKE_CXX_FLAGS_RELEASE
${remove_opt_flag})

But the changes are taken into account. How can i modify compilation flags
for a single file?

I'm using cmake-2.4.8 with gcc on linux.

Thanks in advance,
Surya
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to