fix cmake syntax error #869