[CMake] Function and list

Anton Sibilev anton.sibilev at gmail.com
Wed Mar 2 09:52:27 EST 2011


Hello! I have a function like

FUNCTION (MY_FUNC list)
   MESSAGE ("..${list}")
ENDFUNCTION ()

And I call it like:
SET (list 11 22 33 44 55)
MY_FUNC (list)

and output is:
..11

How I can work with lists or unknown number of arguments in functions?


More information about the CMake mailing list