The spell "Green-Flame Blade" is listed as a cantrip, presumably for the Bladesinger Arcane tradition and has a range of 5ft. In addition, the components for the spell are V, M (weapon) The spell reads:
As part of the action used to cast this spell, you must make a melee attack with a weapon against one creature within the spell's range, otherwise the spell fails.
If using a whip (Finesse, Reach) , as part of the Snake style of the Bladesinger, can this spell be cast if the target is 10 feet away from the Wizard?
Meaning, does the target of the spell have to be within 5 feet of the weapon used to make the melee attack, or does it need to be within 5 feet of the caster?