Re: [CMake] multi-line definitions

2008-09-24 Thread George Neill
Yuri >> On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot <[EMAIL PROTECTED]> wrote: >> >> 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

Re: [CMake] multi-line definitions

2008-09-24 Thread Timenkov Yuri
On Tue, Sep 23, 2008 at 11:05 PM, George Neill <[EMAIL PROTECTED]> wrote: > Hi Manu, > > On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot <[EMAIL PROTECTED]> wrote: > >> The only way would be something like this: > >> > >> set(a "-mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions") > >> set

Re: [CMake] multi-line definitions

2008-09-23 Thread George Neill
Hi Manu, On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot <[EMAIL PROTECTED]> wrote: >> 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

Re: [CMake] multi-line definitions

2008-09-23 Thread Emmanuel Blot
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") Ok thanks. Not really handy, but better than nothing ;-) It

Re: [CMake] multi-line definitions

2008-09-18 Thread Bill Hoffman
Hendrik Sattler wrote: 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

Re: [CMake] multi-line definitions

2008-09-18 Thread Hendrik Sattler
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

Re: [CMake] multi-line definitions

2008-09-18 Thread 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. The only way would be something like this: set(a "-mcpu=arm7td

Re: [CMake] multi-line definitions

2008-09-18 Thread cyril_wobow
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_

[CMake] multi-line definitions

2008-09-17 Thread Emmanuel Blot
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