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@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to