Hi Mahmoud,
With what we have here, I feel both issues are related to multiple installations.
For cmake, it could be that you have multiple cmake installations, in which case you should specify the one you want to use in PATH. Or if you are using ccmake, perhaps it's linked against a cmake backend which is old. Reinstalling them should always work... The README document of DEME has a link to a guide on updating cmake to the newest. It's written for WSL, but works for Linux as well.
For CUDA, I'm pretty sure 11.3 and 12.1~12.3 do not work, which may include the versions you tried. This is a limitation I cannot overcome and you just have to use a different version. I would just recommend the newest CUDA; or try 12.0, if you want to be safe. The most important thing is to set the CUDA-related environment variables correctly before compilation, if you have multiple installations.
The README document of DEME also contains some guidance on how to do that.
Ruochun