Re: [CMake] list( LENGTH ) problem

2008-12-04 Thread Eric NOULARD
Le Wed, 3 Dec 2008 10:09:56 -0600, "Robert Dailey" <[EMAIL PROTECTED]> a écrit : > On Tue, Dec 2, 2008 at 3:00 PM, Alexander Neundorf > <[EMAIL PROTECTED]>wrote: > > > It expects a variable which holds a list: > > > > set(myList foo bar) > > list( LENGTH myList listlen ) > > message( ${listlen} )

Re: [CMake] list( LENGTH ) problem

2008-12-03 Thread Robert Dailey
On Tue, Dec 2, 2008 at 3:00 PM, Alexander Neundorf <[EMAIL PROTECTED]>wrote: > It expects a variable which holds a list: > > set(myList foo bar) > list( LENGTH myList listlen ) > message( ${listlen} ) > > (didn't test or check docs, but I think that should be it) Why did you do: list( LENGTH my

Re: [CMake] list( LENGTH ) problem

2008-12-02 Thread Alexander Neundorf
On Tuesday 02 December 2008, Robert Dailey wrote: > Hi, > > I execute the following CMake code: > > list( LENGTH "foo;bar" listlen ) > message( ${listlen} ) > > However, this results in the value "0" to be printed. I expect this to > print "2". What am I doing wrong? It expects a variable which ho

Re: [CMake] list( LENGTH ) problem

2008-12-02 Thread Maik Beckmann
Am Dienstag, 2. Dezember 2008 schrieb Robert Dailey: > Hi, > > I execute the following CMake code: > > list( LENGTH "foo;bar" listlen ) > message( ${listlen} ) > > However, this results in the value "0" to be printed. I expect this to > print "2". What am I doing wrong? list takes a list-name, so

[CMake] list( LENGTH ) problem

2008-12-02 Thread Robert Dailey
Hi, I execute the following CMake code: list( LENGTH "foo;bar" listlen ) message( ${listlen} ) However, this results in the value "0" to be printed. I expect this to print "2". What am I doing wrong? ___ CMake mailing list CMake@cmake.org http://www.cm