在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配置进了环境变量,该怎么解决这个问题