On 5. May, 2010, at 16:29 , Benoit Thomas wrote:
> On 2010-05-05 10:22, Michael Wild wrote:
>> # prefix and suffix elements
>> > foreach(l ${list_name})
>> > list(APPEND ${list_name}_TMP ${prefix}${l}${suffix} )
>> > endforeach()
>>
> You also have an error in your foreach, it should be:
>
> foreach(l ${${list_name}})
>
> --
> Ben.
Or, alternatively (for recent versions of CMake)
foreach(l IN LISTS ${list_name})
Michael
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake