but instead to compiling it from source you may well go with one of my repos, esp. https://launchpad.net/~rncbc and apply for the "Applications" PPA that fits best your current distribution release level (bionic = 18.04LTS; focal = 20.04LTS; jammy = 22.04LTS)
yeah, cmake 3.15 or above is now the norm...
but instead to compiling it from source you may well go with one of my repos, esp. https://launchpad.net/~rncbc and apply for the "Applications" PPA that fits best your current distribution release level (bionic = 18.04LTS; focal = 20.04LTS; jammy = 22.04LTS)
hth.
cheers