Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-20 Thread Marcel Loose
ds, Marcel Loose. -Original Message- From: Nicolas Desprès To: Hendrik Sattler Cc: cmake@cmake.org Subject: Re: [CMake] doing simple math in cmake or useless foreach( RANGE ) Date: Tue, 19 May 2009 23:38:05 -0300 On Tue, May 19, 2009 at 6:29 PM, Hendrik Sattler wrote: > > If that&

Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Mats Kindahl
Hendrik Sattler wrote: > Hi, > > either I cannot find it or it's not there: doing simple mathematic things > like > substract 1 from a variable. > > If that's not present, I do not understand how > LIST( LENGTH MYLIST COUNT ) > FOREACH ( index RANGE ${COUNT} ) > list ( GET MYLIST ${index} ent

Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Nicolas Desprès
On Tue, May 19, 2009 at 6:29 PM, Hendrik Sattler wrote: > > If that's not present, I do not understand how > LIST( LENGTH MYLIST COUNT ) > FOREACH ( index RANGE ${COUNT} ) > list ( GET MYLIST ${index} entry ) > > > will address non-present indexes in the list. I would the above statement > c

Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Matthew Woehlke
Hendrik Sattler wrote: either I cannot find it or it's not there: doing simple mathematic things like substract 1 from a variable. [snip] Any ideas? cmake --help-command math ?? -- Matthew Please do not quote my e-mail address unobfuscated in message bodies. -- Here endeth the rant... which I

[CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Hendrik Sattler
Hi, either I cannot find it or it's not there: doing simple mathematic things like substract 1 from a variable. If that's not present, I do not understand how LIST( LENGTH MYLIST COUNT ) FOREACH ( index RANGE ${COUNT} ) list ( GET MYLIST ${index} entry ) will address non-present indexes in