一、centos升级cmake
删除自带的低版本cmake:
yum remove cmake -y && rm -f /usr/bin/cmake
下载3.14.2
版本:
wget -c https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2.tar.gz
解压后进入编译cmake且安装:
tar xvf cmake-3.14.2.tar.gz && cd cmake-3.14.2/
gmake
gmake install
软连接到cmake:
ln -s /usr/local/bin/cmake /usr/bin/