Re: [CMake] Really Basic Question

2007-04-18 Thread Alan W. Irwin
On 2007-04-18 23:41- [EMAIL PROTECTED] 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 $(ite

Re: [CMake] Really Basic Question

2007-04-18 Thread David Cole
Try curly braces {} instead of parentheses () :-) David On 4/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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)) M

[CMake] Really Basic Question

2007-04-18 Thread dfeustel
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 ei