sudo apt install cmake # replace 'apt' with your distro package manager
Download the latest version at this link and make sure to select the option "Add CMake to the system PATH for the current user" when asked by the installer.
You may need to change the version of CMake specified in the main CMakeLists.txt
file to match the version you just installed.