Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Celeborn2BeAlive/c402100bf6a07c645fc0630bf1b93525 to your computer and use it in GitHub Desktop.
Save Celeborn2BeAlive/c402100bf6a07c645fc0630bf1b93525 to your computer and use it in GitHub Desktop.
Install CMake on CentOS 7.

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