[CMake] multi-line definitions
Bill Hoffman
bill.hoffman at kitware.com
Thu Sep 18 09:18:46 EDT 2008
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.
The only way would be something like this:
set(a "-mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions")
set(a "${a} -ffunction-sections -fdata-sections ")
set(a "${a} -fno-strict-aliasing -mno-thumb -Os -fomit-frame-pointer")
-Bill
More information about the CMake
mailing list