As far as I know, you have to use foreach( ) to print element by element in the list.<br><br>BR<br><br>Enrique<br><br><div class="gmail_quote">On Wed, Mar 2, 2011 at 8:52 AM, Anton Sibilev <span dir="ltr">&lt;<a href="mailto:anton.sibilev@gmail.com">anton.sibilev@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello! I have a function like<br>
<br>
FUNCTION (MY_FUNC list)<br>
   MESSAGE (&quot;..${list}&quot;)<br>
ENDFUNCTION ()<br>
<br>
And I call it like:<br>
SET (list 11 22 33 44 55)<br>
MY_FUNC (list)<br>
<br>
and output is:<br>
..11<br>
<br>
How I can work with lists or unknown number of arguments in functions?<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>