cmake报错

1无法识别"ALL',"ALL_.."

修改cmakelist.txt文件,指定cmake版本

  1. " Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH."

修改cmakelist.txt文件,指定编译器


set(CMAKE_C_COMPILER "/public/home/baoqi/software/envs/gcc/bin/gcc")

set(CMAKE_CXX_COMPILER "/public/home/baoqi/software/envs/gcc/bin/g++")```
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容