error: could not find git for clone of cxxopts-populate

在cmake中编译SOFT遇到如下问题:

-- Precompiled headers: disabled (SOFA_BUILD_WITH_PCH_ENABLED is OFF or CMake < 3.16).

Install prefix: C:/Users/14347/Desktop/build/install

CMake Deprecation Warning at Sofa/framework/Config/CMakeLists.txt:81 (message):
Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS
variable is ON)
 

Using legacy headers is enabled.

Headers from v21.12 are usable, but it is advised to change your code to use the new headers introduced in v22.06.

Sofa.Component.LinearSolver.Direct: using built-in metis library

CMake Error at D:/Program Files/CMake/share/cmake-3.22/Modules/ExternalProject.cmake:2650 (message):
error: could not find git for clone of cxxopts-populate
Call Stack (most recent call first):
D:/Program Files/CMake/share/cmake-3.22/Modules/ExternalProject.cmake:3700 (_ep_add_download_command)
CMakeLists.txt:23 (ExternalProject_Add)


-- Configuring incomplete, errors occurred!
See also "C:/Users/14347/Desktop/build/_deps/cxxopts-subbuild/CMakeFiles/CMakeOutput.log".

CMake Error at D:/Program Files/CMake/share/cmake-3.22/Modules/FetchContent.cmake:1075 (message):
CMake step for cxxopts failed: 1
Call Stack (most recent call first):
D:/Program Files/CMake/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
D:/Program Files/CMake/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
Sofa/GUI/Common/CMakeLists.txt:12 (FetchContent_Populate)
 

Configuring incomplete, errors occurred!

See also "C:/Users/14347/Desktop/build/CMakeFiles/CMakeOutput.log".

See also "C:/Users/14347/Desktop/build/CMakeFiles/CMakeError.log".

确定已经将git配置进了环境变量,该怎么解决这个问题

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值