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.