对于新版本的cmake,安装方式有变,这篇文章更好:
https://www.cnblogs.com/Blueeeeeeee/p/12409284.html
edit. 2020.3.17
-
自动安装:apt install cmake
-
手动安装:
如果自动安装的cmake版本不够新。
ubuntu查询cmake版本: cmake -version
则可以到官网上查询最新的cmake版本;
https://cmake.org/download/
查询到tar.gz的下载链接;
在unbuntu上作如下操作;
wget “https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3.tar.gz”
tar zxvf ***.tar.gz
sudo mv *** /opt/cmake
sudo ln -sf /opt/cmake/bin/* /usr/bin/
[1] CSDN https://blog.csdn.net/u012101561/article/details/80413627