适用于编译过程中提示的版本过低问题
1先移除旧版本
sudo apt remove cmake
2建立文件夹
mkdir cmake
cd cmake
3下载压缩包
wget https://github.com/Kitware/CMake/releases/download/v3.16.0/cmake-3.16.0.tar.gz
4解压
tar -zxvf cmake-3.16.0.tar.gz
5进入解压包并下载依赖项
cd cmake-3.16.0
apt install libssl-dev build-essential
6执行安装
./bootstrap && make && sudo make install
sudo cmake install
7配置环境变量及查看cmake 版本
vim ~/.bashrc
export PATH=/usr/local/bin:$PATH
source ~/.bashrc
cmake --version