Building with cmake on Windows

Would it be possible to build UE4 projects using a toolchain which does not pass through Visual Studio?
I think this should be theoretically possible, as under linux cmake is used to do the same.
And how could it be done?
UnrealBuildTool.exe seems to be configured to use visual studio, as it throws an error if I run it without visual studio installed.

p.s. why don’t I want to use visual studio? because I lack disk space, and visual studio occupies at least ten GB: furthermore, this looks like a nonsense to me, because cmake, which does the same on linux, doesn’t need so much space.