To provide a local, and most likely newer, version of CMake than the system packages provide you can easily build it from source and install it to the systemd file-hierarchy spec which is an extension of the xdg user-dirs spec.
The effect of this is there can be a fully functional CMake on the current user’s path and it will only be available to the current user. This is achieved by installing CMake to
$ sudo apt install -y libssl-dev wget
$ cd $(mktemp -d) $ wget https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0.tar.gz $ tar xvf cmake-3.17.0.tar.gz $ cd cmake-3.17.0 $ ./bootstrap --prefix=$HOME/.local $ make $ make install $ export PATH="$HOME/.local/bin:$PATH" $ which cmake /home/build-bot/.local/bin/cmake $ cmake --version cmake version 3.17.0 CMake suite maintained and supported by Kitware (kitware.com/cmake).