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
It's the problem of your git's path.
I assume you are using the Clion, just check if you have added %gitpath%\bin
to your path, that's where the problem is. You should use %gitpath%\cmd
instead, typically for me it's D:\Git\cmd
.Since the former one includes sh.exe
in your path which results in the error.