As long as you don’t forget to add “and btw, homosexuality is wrong”.
It depends on the age of the child. It might be sufficient to make it clear to the child that it’s wrong for her mother to be in a relationship with someone who feels no affection for the child.