[cmake-developers] The configuration-specific version COMPILE_FLAGS

Alexey Ozeritsky aozeritsky at gmail.com
Sun Mar 20 14:37:37 EDT 2011


Hello,

I want to decrease optimization level from /O2 to /O1 for specific
files in my project, but I do not find any way to do that.
COMPILE_DEFINITIONS_<CONFIG> does not work for me.

So, I've written a patch that adds support of configuration-specific
version of COMPILE_FLAGS file property.
Patch tested with the following generators: "Unix Makefiles", "Visual
Studio 9 2008 [Win64]",  "Visual Studio 10 [Win64]".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile_flags_per_config.patch
Type: application/octet-stream
Size: 5207 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110320/181f6d40/attachment-0002.obj>


More information about the cmake-developers mailing list