fix cmake method on travis CI