Windows环境
1 Failed to run MSBuild command
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
Configuring incomplete, errors occurred!
解决
系统环境变量中添加MSBuild.exe的执行路径
点击系统高级,Path追加D:\vs2017dev\ide\MSBuild\15.0\Bin
Linux环境
1 The current CMakeCache.txt directory is different than
CMake Error: The current CMakeCache.txt directory is different than the directory where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
解决方案
直接删除CMakeCache.txt文件,然后重新cmake .执行操作