PlsHelp:

These are the logs of the last run (with USE_GLOO=0)

CMakeError.log 
CMakeOutput.log 



The logs you provided are not informative. By “full log”, I mean you redirect stdout and stderr to a log file (by appending > build.log 2>&1 after every command or just write all the commands into a script and run that script with this pattern) and please upload that log file.

I will now try to build with Ninja again and send you the logs once it is done. In order to do so, I just set USE_NINJA=ON and remove the following lines from my installation routine, right?

You still need this if you use a regular CMD window instead of opening a x64 MSVC dev shell.
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=%CMAKE_GENERATOR_TOOLSET_VERSION%
BTW, set DISTUTILS_USE_SDK=1 is still needed.