[CMake] list( LENGTH ) problem
Robert Dailey
rcdailey at gmail.com
Wed Dec 3 11:09:56 EST 2008
On Tue, Dec 2, 2008 at 3:00 PM, Alexander Neundorf
<a.neundorf-work at gmx.net>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 myList listlen )
instead of:
list( LENGTH ${myList} listlen )
This seems pretty inconsistent with how I pass variables into functions in
other places, like message() for example.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081203/13be2554/attachment.htm>
More information about the CMake
mailing list