CMake版本升級
1、在網址 https://cmake.org/files/v3.1/ 下載 cmake-3.1.0.tar.gz
2、解壓
3、執行 ./configure
4、執行 make
5、執行 sudo make install
6、執行 sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
7、運行 cmake --version 查看版本號
說明: 第6步 update-alternatives 命令用於處理linux系統中軟件版本的切換。
---------------------
原文鏈接:https://blog.csdn.net/walkerfan/article/details/90813971