After beating Canadian Milos Raonic, Murray was interviewed on Centre Court and paid tribute to the crowd who had cheered him to victory.
When he mentioned Cameron was among the audience, the crowded greeted the announcement with boos.
Murray was then forced to wait for the crowd to settle down before he could continue.
Murray said: “I think playing a Wimbledon final is tough but I certainly wouldn’t like to be the prime minister.”
He added it was “impossible job” as Cameron watched on, next to his mother Mary.