Turkish president’s comments come after Putin and Trump said there was ‘no military solution’ to Syria’s war.