, which logs to stderr a trace of all the scripts executions and shows the values of the variables; this is basically to understand what's happening to the cmake logic in that utils.cmake script. You could look into that, or you can open an issue attaching that log so that I can give a look at it later.
build generator and it worked just fine
generated build files just fine
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DMSVC_TOOLSET_VERSION=142 C:\repos\osquery