[CMake] multi-line definitions

Hendrik Sattler post at hendrik-sattler.de
Thu Sep 18 14:16:11 EDT 2008


Am Thursday 18 September 2008 15:18:46 schrieb Bill Hoffman:
> cyril_wobow wrote:
> > Have you tried the following
> > SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi" "-std=gnu99"
> > "-fgnu89-inline" ... "-DNDEBUG")
> >
> > Cyril
>
> That won't work.  It will create a list of items and it needs to be a
> big string.

Exactly why is it not possible to give a cmake list of options to property 
like COMPILE_FLAGS and LINK_FLAGS?
CMake kindof should know that those flags cannot be given as e.g. "-Wall;-W". 
Or is there any known case where this would make sense?

HS


More information about the CMake mailing list