On Fri, May 29, 2009 at 10:29:19PM -0700, Gregory Sharp wrote:
> After some struggle, I learned that ADD_DEFINITIONS and
> COMPILE_DEFINITIONS are different.  The ADD_DEFINITIONS allows 
> for -D, but COMPILE_DEFINITIONS does not.

I have noticed this as well.

> Is this a bug or a feature?  

I guess it's a feature since add_definitions() can be used to pass more
or less arbitrary commands to the compiler. It might be nice if this
were documented.

> Any clean way to convert to COMPILE_DEFINITIONS format?

I would use string(REGEX REPLACE ...)

tyler
_______________________________________________
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

Reply via email to