I can't disagree with you at all. The rise of religion in government does us no good. However, we have to face reality as it exists. There'd be someone else if not him. Turkish people are clearly religious Muslims. While it would be nice to have a secular army in control of Turkey, we know the situation wouldn't be viable long term. I for one am glad when politicians take roads sustainably in the long term rather than a band aid until the next election.
As much as we all hate the growth of Islam, we can't really do much about it. If we suppress the Islamic populists for too long, we risk creating more caliphates around the world.