MinGW in cmder, mingw

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:
MinGW in cmder, mingw_第1张图片

λ which cmake.exe
/c/Program Files/CMake/bin/cmake.exe

你可能感兴趣的:(c++,windows)