[CMake] Proper way to define a list

Robert Dailey rcdailey at gmail.com
Mon Mar 30 15:32:50 EDT 2009


Hi,
What's the proper way to define a list? Suppose I have 3 words: Foo, Bar,
and Baz. I want these 3 strings to be in a list called Stuff. Would I do
this:

set( Stuff "Foo;Bar;Baz" )

Is this correct? I don't think this can be right because it runs the risk of
mixing semi-colons with spaces to partition elements. Why is there no list(
DEFINE ) or something similar?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090330/94b32657/attachment.htm>


More information about the CMake mailing list