There is some evidence showing Turkey was giving support to ISIS in Syria. Erdogan is seen as an Islamist. But to me, it looks like the West was hedging on this coup. They probably supported it somewhat, but once it looked like Erdogan was putting it down, they came out in support of him.
It's like what happened in Egypt. Obama, Clinton, and others in the West fully supported the Muslim Brotherhood. But once it looked like it was gonna get taken out, the West then supported the military coup. The military coup in Egypt was illegal, but most of the West has supported it. It's about covering your bases.
The west didn't support the coup. Hillary, Obama, John McCain, Lindsey Graham. all Wanted the Morsi government reinstated...Morsi is where he belongs ..islamo- fascist scum.