Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save baonq-me/ffb4505ceb6cd579feaae12436d9d8f9 to your computer and use it in GitHub Desktop.
Save baonq-me/ffb4505ceb6cd579feaae12436d9d8f9 to your computer and use it in GitHub Desktop.
Install CMake on CentOS 7.

Download CMake from: https://cmake.org/download/

wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.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