Fixed cmake warning for thrift files.

Change-Id: I8a1f800b0e28f30124c82c49e018858480b2df89
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3077
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins