Donald Trump has predicted that President Barack Obama's recent announcement in support of gay marriage will cost him votes.

Appearing on Fox News earlier this month, Trump said he believes Obama's gay marriage nod will steepen the incline the president is facing in several must-win states.

“It's a very risky move, I think,” Trump told host Neil Cavuto. “I think in terms of raising money, probably it's a positive, but you have a couple of states which really will tilt the other way, I think, because of what he did yesterday.”

Referring to North Carolina, Virginia and Indiana, Trump said they were “more than swing states, you have to win them. Either has to win them.”

“And yet they are very much opposed to what the president said yesterday. And as soon as I heard it, I said, 'Well maybe he's going to raise some funds, but he's going to lose those three states.'”

During Trump's brief flirtation with a run at the White House as a Republican, he said he was opposed to marriage and civil unions for gay couples. Trump said he opposed gay nuptials because he doesn't “feel good about it.”

(Related: Donald Trump Jr. supports gay marriage.)