解决CMake错误:The CXX compiler identification is unknown

CMake 选择了 VS2015 进行配置,在执行 Configure 的时候,出现如下错误:

The CXX compiler identification is unknown

引起这个错误的原因是 CMake 找不到 C++ 的编译器,检查 VS 的安装目录是否有 cl.exe 以及 rc.exe 和 rcdll.dll。

如果没有 cl.exe,那么可能是只安装了VS,没有安装 VC 编译器,打开VS,选择 VC 安装即可。

如果没有 rc.exe 和 rcdll.dll,这是编译资源用的,可能安装在 Windows SDK 中,直接复制这两个文件到 VC/bin 目录下即可。

猜你喜欢

转载自blog.csdn.net/u011304970/article/details/79147618
今日推荐