一、卸载系统老版本cmake
sudo apt autoremove cmake
二、下载最新版本cmake
cmake官网:Download | CMake
三、安装
sudo ./cmake-3.22.1-linux-x86_64.sh --prefix=/usr/ --skip-license
一、卸载系统老版本cmake
sudo apt autoremove cmake
二、下载最新版本cmake
cmake官网:Download | CMake
三、安装
sudo ./cmake-3.22.1-linux-x86_64.sh --prefix=/usr/ --skip-license