fix cmake prepare error