CentOS 7安装 CMake

下载CMake

访问https://cmake.org/download/

wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz

Compile from source and install

tar zxvf cmake-3.*
cd cmake-3.*
./bootstrap --prefix=/usr/local
make -j$(nproc)
sudo make install

检验安装

cmake --version

执行结果如下:

~/cmake-3.12.3 → cmake --version
cmake version 3.12.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

参考

https://gist.github.com/1duo/38af1abd68a2c7fe5087532ab968574e

猜你喜欢

转载自blog.csdn.net/lxyoucan/article/details/114405803