[CMake] addprefix macro?

Benoit Thomas benoit.thomas at gameloft.com
Wed May 5 10:29:39 EDT 2010


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.


More information about the CMake mailing list