originally cmake should auto MinGW, but after installation VS2019, cmake cmd in cmder becomes VS compiler
if you still want to use MinGW please try:
1, cmake.exe -G "MinGW Makefiles" CMakeLists.txt_dir
2, mingw32-make
in fact, if type cmake.exe -G then follows:
λ which cmake.exe
/c/Program Files/CMake/bin/cmake.exe