# macro to convert a CMAKE list to a string MACRO(LIST2STRING alist astring) FOREACH(elem ${${alist}}) SET(${astring} "${${astring}} ${elem}") ENDFOREACH(elem) ENDMACRO(LIST2STRING)