Clion 运行时因为sh.exe报错问题
转载自: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.
- 原因: cmake应该用shell打开,所以在环境变量中不应该有sh.exe(装了git的命令行工具就会有)
-
解决:cmake设置参数 -DCMAKE_SH="CMAKE_SH-NOTFOUND"
然后重新打开Clion之后就好了。