MinGW sh.exe must NOT be in your path

后端 未结 5 1241
长发绾君心
长发绾君心 2021-01-31 02:46

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         


        
5条回答
  •  遥遥无期
    2021-01-31 02:57

    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:

    -G "CodeBlocks - MinGW Makefiles"
    

提交回复
热议问题