Windows configure error when using the command line: "The C/CXX compiler identification is unknown.."

I tested a simple cpp file using the shell of MSVC tool, the cl build was successful.

While I try the cmake command in the same shell, it prompt the same error…
– Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.