Compile CMAKE on CentOS 7

There are cases, where you need a newer CMAKE version on your CentOS 7 system.

This guide will tell you, how to quickly install it. So far, it has been tested with CMAKE 3.13.1

 

CMAKE_VERSION=3.13.1
cd /tmp
yum -y install gcc-c++
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz
tar xf cmake*.tar.gz
cd cmake*
./bootstrap && make && make install