MinGW sh.exe must NOT be in your path
Check you really do not have sh.exe
in your PATH
by opening a Windows Command Line and typing where sh.exe
. If you have this file in your path, the command will return its path (then you should remove it from your PATH
) else if windows return it was not found, try to clean up the folder CMakeFiles
and a file name CMakeCache.txt
somewhere inside your project folder.