Another potential way would be to install CMake as a snap package. You can find instructions on how to do that here: