Singer-songwriter Katy Perry says she, like President Barack Obama, has “evolved” on gay marriage.

The 27-year-old Perry commented on Obama's recent endorsement of marriage equality in a wide-ranging interview with PARADE.

“I was really happy,” she said of the president's May announcement. “I probably went down to West Hollywood and had a shot. I came from a different mind-set growing up, and my mind has changed. My viewpoint on all these things – equality for women, the choice to love anyone you want – hopefully, we will look back at this moment and think like we do now concerning [other] civil rights issues. We'll just shake our heads in disbelief, saying, 'Thank God we've evolved.' That would be my prayer for the future.”

Perry's early hits I Kissed A Girl (and I liked it) and Ur So Gay raised eyebrows.

Speaking earlier with Michigan gay weekly Between the Lines, Perry suggested that she could go gay under the right circumstances.

“I do not discriminate against any beauty no matter what form it comes in, and Rihanna is gorgeous. I think that everybody would tap it if they could,” Perry told the paper.