linux下升级cmake
1.下载cmake
wget https://cmake.org/files/v3.6/cmake-3.6.2.tar.gz tar xvf cmake-3.6.2.tar.gz && cd cmake-3.6.2/ ./bootstrap
2.解压,编译安装
centos:
gmake gmake install
ubuntu:
make
3.查看新版本
/usr/local/bin/cmake --version
4.删除原来cmake版本,建立软连接,测试
yum remove cmake -y ln -s /usr/local/bin/cmake /usr/bin/ cmake --version