Download the latest changes on master, that error should be fixed there.
Why are you trying to build it? Why use visual studio code? Why not Visual Studio?
Just questioning all actions isn't really helpful.
Don't think you really need an answer to why building SFML is a good idea...
And people are free to use whatever tooling they want, but it's true that some tools can be a bit more hands-on.