[CMake] clear compile flags for a file

Ian Monroe ian at monroe.nu
Wed Apr 10 16:37:46 EDT 2013


So I have the same problem as the person in this old thread:
http://www.cmake.org/pipermail/cmake/2009-August/031671.html

I want to add some compile flags (currently using add_definitions) but they
mess up the rc.exe resource compiler.

Doing something like:
set_source_files_properties(hipchat.rc PROPERTIES COMPILE_DEFINITIONS
"")    set_source_files_properties(hipchat.rc PROPERTIES COMPILE_FLAGS "")

doesn't work, I guess set_source_file_properties is only appending.

setting CMAKE_CXX_FLAGS didn't seem to work at all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130410/f47acd84/attachment.htm>


More information about the CMake mailing list