I have problems with cmake on Windows 10. I pruned things to the smallest example that will generate the same errors. I run cmake from the Windows command prompt (the same problem occurs with the git bash command-line interpreter, of the Visual Studio command prompt ). My CMakeLists.txt contains three lines:
cmake_minimum_required(VERSION 3.1)
project(DEBUG bogus)
I run cmake this way:
cmake -G "Visual Studio 15 2017 Win64" .
A MSBuild.exe window pops up briefly with an error message, but I can't read it. It's gone too fast.
The command-line window displays this error message:
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/MSBuild/15.0/Bin/MSBuild.exe
to get the value of VCTargetsPath:
-- Configuring incomplete, errors occurred!
See also "C:/Users/tmpuser/Desktop/SDK/dependencies/DEBUG/CMakeFiles/CMakeOutput.log".
The executable for MSBuild.exe does indeed exist. The CmakeOutput.log file contains:
The system is: Windows - 10.0.17763 - AMD64
Does anyone know what is wrong?