解决cmake使用过程中The C compiler identification is unknown 或者The CXX compiler identification is unknown问题

属于编译器没有进行安装,可以根据你的系统选择在命令行中运行下面的命令。
RedHat-based

yum install gcc gcc-c++

Debian/Ubuntu-based

apt-get install cmake gcc g++

如果你权限不够,在命令前面加上sudo执行
最后重新编译你的project即可

猜你喜欢

转载自blog.csdn.net/LITTENg/article/details/80188614
今日推荐