ubuntu cmake 报找不到CMAKE_CXX_COMPILER 的错误

错误如下

CMake Error in CMakeLists.txt:

  No CMAKE_CXX_COMPILER could be found.


  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.

安装g++和gcc 试试

猜你喜欢

转载自blog.csdn.net/ssj901217/article/details/80046204