Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nanguoyu/a1d3bbb8da869bad0aea111bc9b78d05 to your computer and use it in GitHub Desktop.
Save nanguoyu/a1d3bbb8da869bad0aea111bc9b78d05 to your computer and use it in GitHub Desktop.
Install CMake on CentOS 7.
yum install gcc-c++

Download CMake from: 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)
make install

Validate installation

cmake --version

cmake version *.*.*
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment