[CMake] Problem with ASM and COMPILE_DEFINITIONS

Alexander Neundorf a.neundorf-work at gmx.net
Thu May 28 18:20:40 EDT 2009


On Wednesday 27 May 2009, Marcel Loose wrote:
> Hi all,
>
> I've done some more digging and found the culprit: using
> add_definitions() with a quoted string containing more than one
> argument.
>
> So, for example, the following command defines preprocessor variables
> that are NOT discarded by CMake when /usr/bin/as is called.
>
> add_defintions("-DMYDEF -DMYOTHERDEF")
>
> However, when supplying only a single argument, quotes don't seem to
> matter. Also, when removing the quotes on the multiple arguments above,
> CMake properly discards these preprocessor variables when
> invoking /usr/bin/as.
>
> Now, is this a CMake bug or feature!?

Can you please attach a small but complete testcase, ideally in the bug 
tracker ?

Thanks
Alex


More information about the CMake mailing list