Generator for Eclipse CDT4 Unix Makefiles - Error

I can see two main issues.

First issue: the script gen.bat contains some unbalanced quoting.

It contains:

-DCMAKE_CXX_COMPILER=g++.exe" -DCMAKE_C_COMPILER=gcc.exe"

which is equivalent to

-DCMAKE_CXX_COMPILER="g++.exe -DCMAKE_C_COMPILER=gcc.exe"

This makes cmake try to run g++.exe -DCMAKE_C_COMPILER=gcc.exe, which fails (see TestCode/cmake/CMakeFiles/CMakeError.log).

Second issue: make is maybe not installed.

What exactly is installed in C:\MinGW?

The picture “CMake TestCode Setup.jpg” shows that both gcc and g++ are in the PATH, but this doesn’t guarantee that make is installed and can be run. You can use where cmake to check whether make can be found.

If all of make, gcc and g++ are in the PATH, there is no need to pass any -DCMAKE_* argument on the command line. cmake will find them.