CMake "failed to run MSBUILD.exe" command error
In CMake-gui: After you selected the source & binary folder and click "configure" it will ask you which version of the compiler to use. Make sure that you select the correct one
For example, if you have "Visual Studio 2015" installed and you select "Visual Studio 2017", you will run into the "Failed to run MSBuild command:" error.
If you did select the wrong one, either delete the binaries-folder or simply use another binaries-folder - and then click configure and select the correct compiler.
Try installing a Windows SDK (Windows 10 SDK) and run CMake with administrator privileges. If this will not help please edit your question with full warnings and errors messages as in current one you have skipped most important part.