今天更新了cmake,记录下步骤:
1,去官网下载合适的版本
2,tar -xzvf cmake-3.12.4.tar.gz(解压缩)
3,cd到解压后的目录执行:
#./configure
#make
#sudo make install
#sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
4, 确认下版本是否已经更新:
#cmake --version
cmake version 3.12.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).