minor cmake bug with matlab