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


在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" ..

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM