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 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.
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to