[CMake] multi-line definitions

cyril_wobow cyril at wobow.com
Thu Sep 18 04:21:28 EDT 2008


Have you tried the following
SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi" "-std=gnu99" 
"-fgnu89-inline" ... "-DNDEBUG")

Cyril

Emmanuel Blot a écrit :
> Hi,
>
> Is it possible to write variable definition directives using multiple 
> lines, i.e.
>
> I have a long definition string such as:
> SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi -std=gnu99 -fgnu89-inline 
> -finline-functions -ffunction-sections -fdata-sections 
> -fno-strict-aliasing -mno-thumb -Os -s -fomit-frame-pointer -DNDEBUG")
>
> How can I split this line (so that it fits into 80 column pages) ?
>
> Thanks,
> Manu
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list