On Wed, Apr 10, 2013 at 1:37 PM, Ian Monroe <[email protected]> wrote: > 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. >
Ok I figured out you need to pass CMAKE_CXX_FLAGS a string. So now I have it all working. I still wonder if the state-of-the-art has changed since 2009. Is there a way to clear definitions from a file?
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
