Can't use cmake with sudo on ubuntu

I download cmake source code then I run sudo env CC="/usr/local/bin/clang -fuse-ld=gold -flto" CXX="/usr/local/bin/clang++ -fuse-ld=gold -flto" ./bootstrap --prefix=/usr/local/cmake -- -DCMAKE_BUILD_TYPE:STRING=Release && sudo make && sudo make install.

after I installed cmake, I run following command

➜  cmake --version
cmake version 3.25.2

CMake suite maintained and supported by Kitware (
➜  sudo cmake --version
sudo: cmake: command not found

how can I solved this problem? I need use cmake with sudo.

problem solved
sudo ln -s /usr/local/cmake/bin/cmake /usr/local/bin/cmake