[CMake] clear compile flags for a file
Ian Monroe
ian at monroe.nu
Wed Apr 10 16:50:56 EDT 2013
On Wed, Apr 10, 2013 at 1:37 PM, Ian Monroe <ian at monroe.nu> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130410/6c9a062c/attachment-0001.htm>
More information about the CMake
mailing list