Did you already tried to use Cent OS’s package manager to update CMake? sudo yum install cmake
sudo yum install cmake