Defense Secretary Robert Gates said Wednesday that from what he has seen, both John McCainJohn McCainWhy the GOP cannot sweep its Milo scandal under the rug New York Knicks owner gave 0K to pro-Trump group Hannity apologizes for sharing 'inaccurate' story about McCain MORE and Barack ObamaBarack ObamaPoll: ObamaCare support hits new high How the candidates for DNC chair stack up ahead of Saturday's vote Ginsburg: Trump Supreme Court nominee Neil Gorsuch is 'very easy to get along with' MORE would take a "sensible approach" to Iraq once in office.

"Based on what I read in the newspapers, I think either person who is elected president is going to come in and take a close look at it," Gates said during an interview with CNN.

Despite the wide distance between Obama and McCain on Iraq, Gates said both will heavily weigh the options when approaching the "endgame" in Iraq.

"I've said repeatedly we can't get the endgame wrong. The next president would suffer the greatest consequences if we do get the endgame wrong, so I think whoever's elected is likely to take a fairly sensible approach to it," Gates said.