转载自:https://www.jianshu.com/p/3bfcb78af171

报错:clion sh.exe was found in your PATH, here:

For MinGW make to work correctly sh.exe must NOT be in your path.

Clion 运行时因为sh.exe报错问题

  • 原因: cmake应该用shell打开,所以在环境变量中不应该有sh.exe(装了git的命令行工具就会有)
  • 解决:cmake设置参数 -DCMAKE_SH="CMAKE_SH-NOTFOUND"

     

    Clion 运行时因为sh.exe报错问题

     

 然后重新打开Clion之后就好了。

相关文章: