You may get an error, Please Set CMAKE_CXX_COMPILER to a Valid Compiler Path or Name Linux  when you compile using cmake command.

Error:

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

Solution:

You need to check the compiler may  installed where you specified that, for more details see here,

To install following package,
 
# yum update

# yum install gcc-c++