[CMake] setting a CMAKE_CXX_FLAGS without clearing out all the other flags

Jesse Corrington jesse.corrington at gmail.com
Wed Nov 28 14:48:34 EST 2007


I want to set the flag /subsystem to "windows" for a vc 2005 build, but I
don't want to clear out all the flags and set it. The best way I can think
of to do this is to iterate over the default flags until I get to /subsystem
and remove it and its value, and then add the flag with the value I want. I
just want to make sure this is the best way to handle this. Any thoughts?

Thanks

Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071128/98066416/attachment.html


More information about the CMake mailing list