在使用 CMake 构建VS2015项目时遇到一个错误提示:could not find git for clone of。

 

因为项目需要从GitHub导入运行库,但构建项目时提示未能找到这个库,而git上项目并没有问题。

ExternalProject_Add(
   GIT_REPOSITORY https://github.com/AAA.git 
)

 

经过试验,可以通过在系统中安装 git shell 来解决这个问题,下载地址:https://git-scm.com/download/win

【CMake】CMake ERROR:could not find git for clone of

 

至于错误原因可能和链接的安全协议有关。

相关文章:

  • 2021-04-20
  • 2021-12-12
  • 2021-09-30
  • 2021-11-11
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2022-03-04
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案