yum安装的版本过于低,一般都是2.8版本.
需要安装gcc gcc-c*
# wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
#tar zxf cmake-3.7.2.tar.gz
#cd cmake-3.7.2
#./bootstrap
#make && make install
查看版本
[root@localhost cmake-3.7.2]# cmake --version
cmake version 3.7.2
CMake suite maintained and supported by Kitware (kitware.com/cmake)
转载于:https://blog.51cto.com/sadoc/1910753