CMake Error: Could not find CMAKE_ROOT !!!
I am building cmake on an Ubuntu 18 system. I follow the exact instructions in README, i.e.
> ./bootstrap && make && sudo make install
That all works with no error messages. But then running cmake always gives this message:
> kbriggs@Dell:~/Downloads/cmake-3.20.3> cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/share/cmake-3.10
cmake version 3.10.2
What is happening? CMAKE_ROOT is not mentioned anywhere in README.