cmake编译安装

Eave 2023.08.06 03:10

1、下载cmake

下载地址:https://cmake.org/download

wget "https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1.tar.gz"

2、安装cmake

tar -zxf cmake-3.27.1.tar.gz
cd cmake-3.27.1
./bootstrap --prefix=/usr
gmake && make install

3、查看cmake版本号

cmake -version