Hello all,<br>I&#39;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. <br><br>I&#39;ve done this.<br>
<br><span style="color: rgb(0, 153, 0);">STRING (REPLACE &quot;-O3&quot; &quot;&quot; remove_opt_flag ${CMAKE_CXX_FLAGS_RELEASE})<br>SET_SOURCE_FILES_PROPERTIES (${file} PROPERTIES CMAKE_CXX_FLAGS_RELEASE ${remove_opt_flag})<br>
</span><br>But the changes are taken into account. How can i modify compilation flags for a single file?<br><br>I&#39;m using cmake-2.4.8 with gcc on linux.<br><br>Thanks in advance,<br>Surya<br><br>