CMake 安装使用相关

一、安装

CMake下载地址

注意事项

二、使用

打开GUI

参数设置

编译

三、报错

错误1

The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution

解决1

缺少VS2015不自带Windows 8.1 SDK ,需要自行下载安装,(类似问题链接),8.1SDK可直接从Windows官网下载

错误2

No CMAKE_CXX_COMPILER could be found

解决2

VS缺少C++编译环境,可直接从VS内下载,安装时候可以顺路安装错误1的 8.1 SDK 

猜你喜欢

转载自blog.csdn.net/oneKnow/article/details/98856126