chatglm.cpp icon indicating copy to clipboard operation
chatglm.cpp copied to clipboard

编译安装时,third_party中的sentencepiece的cmake_minimum_required(VERSION 3.1 FATAL_ERROR)需要更新至3.5

Open stjuliet opened this issue 7 months ago • 0 comments

CMake Error at third_party/sentencepiece/CMakeLists.txt:15 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

使用CMAKE_ARGS="-DGGML_CUDA=ON" pip install -U chatglm-cpp编译安装时,会出现上述错误,目前只能通过源码编译修改CMakeLists.txt文件解决

stjuliet avatar Apr 03 '25 00:04 stjuliet