Ubuntu下cmake报错No CMAKE_CXX_COMPILER could be found.

解决问题:安装g++;

sudo apt-get install g++