cmake升级\更新-ubuntu
1.卸载原来的cmake,安装依赖
sudo apt-get autoremove cmake
sudo apt install build-essential libssl-dev
2.下载新的cmake
https://cmake.org/files/
选择版本:cmake-3.24.0-linux-x86_64.tar.gz
3.解压cmake
sudo tar xf cmake-3.24.0-linux-x86_64.tar.gz
4.直接将bin和share中的东西复制到/usr/bin和/usr/share下就可以了
cd cmake-3.24.0-linux-x86_64
sudo cp bin/* /usr/bin/
sudo cp -r share/cmake-3.24 /usr/share/