码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-09-29 14:58:20      阅读:655      评论:0      收藏:0      [点我收藏+]

标签:命令   sha   sql   程序   error   har   efi   环境变量   window   

在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

标签:命令   sha   sql   程序   error   har   efi   环境变量   window   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!