[CMake] list of lists -possible?
Doug Reiland
dreiland at gmail.com
Wed Jun 2 12:24:44 EDT 2010
Is it possible to implement a list of lists. The following example
shows cmake ending up with a list with 6 elements instead of
a list with 2 elements with each element being a list with 3 elements
set(fooa 1 2 3)
set(foob a b c)
message(${fooa})
message("${fooa}")
message("${foob}")
list(APPEND foos "${fooa}")
list(APPEND foos "${foob}")
message("${foos}")
foreach (a ${foos})
message(${a})
endforeach()
Thanks again
More information about the CMake
mailing list