CMake can not find g++ compiler on Windows
问题 I have a CMake project I want to compile with g++. The project compiles and runs on Linux. Now I am trying to get it working on Windows. For that reason, I installed MinGW and added it to the PATH and I am using Git Bash. In order to force CMake to use g++ I added these env variables: CC = C:\MinGW\bin\gcc CXX = C:\MinGW\bin\g++ But when I run CMake it does not detect any compilers and tells me: -- The C compiler identification is unkown -- The CXX compiler identification is unkown I created