<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 10, 2013 at 1:37 PM, Ian Monroe <span dir="ltr"><<a href="mailto:ian@monroe.nu" target="_blank">ian@monroe.nu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>So I have the same problem as the person in this old thread:<br><a href="http://www.cmake.org/pipermail/cmake/2009-August/031671.html" target="_blank">http://www.cmake.org/pipermail/cmake/2009-August/031671.html</a><br>
<br></div>I want to add some compile flags (currently using add_definitions) but they mess up the rc.exe resource compiler.<br><br></div><div>Doing something like:<br></div>set_source_files_properties(hipchat.rc PROPERTIES COMPILE_DEFINITIONS "") set_source_files_properties(hipchat.rc PROPERTIES COMPILE_FLAGS "")<br>
<br></div><div>doesn't work, I guess set_source_file_properties is only appending.<br><br>setting CMAKE_CXX_FLAGS didn't seem to work at all.<br></div></div></blockquote><div><br></div><div>Ok I figured out you need to pass CMAKE_CXX_FLAGS a string. So now I have it all working.<br>
<br>I still wonder if the state-of-the-art has changed since 2009. Is there a way to clear definitions from a file? <br></div></div><br></div></div>