Currently trying to setup my C development environment on windows with MinGW and it looks like CMAKE is giving me the following error:
sh.exe was found in your P
I like @Elia's answer, but if you are using CLion, it uses the CodeBlocks - MinGW Makefiles CMake generator which doesn't have the sh.exe checking problem. Add this to your CMake line:
CodeBlocks - MinGW Makefiles
sh.exe
-G "CodeBlocks - MinGW Makefiles"