In its fullest sense, the commandment is against sex with anyone but your spouse. If you are not yet married the commandment requires that you wait until you are married to have sex. And, as G-d has made it clear that all marriages are heterosexual, it condemns homosexual activity.
Shalom.