[CMake] setting a list using the -D option
Darby J Van Uitert
darbyb at sci.utah.edu
Thu Sep 7 21:44:39 EDT 2006
Hello,
How do I set the value of a list using the -D option when running cmake?
For example, if I want FOO to be a list containing the letters a, b, and
c, I thought I would do something like
>cmake ../src -DFOO:STRING="a b c"
I tried this but then it just treats it as a string and my foreach loop
only runs once. Any input is appreciated.
-darby j
--
Darby J Van Uitert
SCI Institute
University of Utah
Email: darbyb at sci.utah.edu
Phone: (301) 528-8469
More information about the CMake
mailing list