[CMake] Really Basic Question
David Cole
david.cole at kitware.com
Wed Apr 18 20:24:49 EDT 2007
Try curly braces {} instead of parentheses ()
:-)
David
On 4/18/07, dfeustel at mindspring.com <dfeustel at mindspring.com> wrote:
> I created a CMakeLists.txt file with the following:
>
>
> # set a list of items
>
> SET(items_to_buy apple orange pear beer)
>
> # loop over the items
>
> FOREACH (item $(items_to_buy))
> MESSAGE( "Don't forget to buy a $(item)" )
> ENDFOREACH (item $(items_to_buy))
> MESSAGE( $(items_to_buy) )
>
> when I run either ccmake . or cmake, ther is no expansion
> of $(items_to_buy). Do I need something else in the file?
>
> Thanks,
> Dave Feustel
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list