fixed cmake syntax for foreach