"Cruz compared “global warming alarmists” to “flat-Earthers” and himself to Galileo, saying “this heretic named Galileo was branded a denier” for insisting the Earth was round. This is wrong. Galileo’s troubles with the church stemmed from his belief that the Earth orbits the Sun.
The fact that the planet is round was accepted before Galileo was born."
My emphasis.
More
http://www.factcheck.org/2015/03/cruz-on-the-global-cooling-myth-and-galileo/