[CMake] set_target_properties not setting COMPILE_DEFINITIONS?

David Doria daviddoria at gmail.com
Tue Mar 29 09:22:33 EDT 2011


>> Can you create a standalone example of this to make it easier to debug?
>
> add_executable(foo foo.cxx)
> ...
>

Bill,

My standalone example works fine: http://pastebin.com/tGjX1AZ8

You can see that the UNIX and DAVID definitions are both passed.

Maybe something is "overriding" the definitions in my real example? I
see these definitions:

D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DITK_IO_FACTORY_REGISTER_MANAGER

but not the ones I've set using COMPILE_DEFINITIONS

David


More information about the CMake mailing list