首页 > Windows开发 > 详细

cmake window下 sh.exe was found in your PATH, here

时间:2017-09-29 14:38:43      阅读:730      评论:0      收藏:0      [点我收藏+]

在window下 mingw环境下 用 camke 编译Cpp程序

CMake Error at D:/Program Files/CMake/share/cmake-3.8/Modules/CMakeMinGWFindMake.cmake:12 (message):
  sh.exe was found in your PATH, here:

  C:/cygwin64/bin/sh.exe

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

  Run cmake from a shell that does not have sh.exe in your PATH.

  If you want to use a UNIX shell, then use MSYS Makefiles.

Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

  解决方法:

在环境里面 系统环境变量 用户环境变量 PATH中

找 C:/cygwin64/bin 删除

关闭cmd 重新编译

window minw cmake 命令:

cmake -G   "MinGW Makefiles" ..

 

cmake window下 sh.exe was found in your PATH, here

原文:http://www.cnblogs.com/a9999/p/7610743.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!