ggerganov / ggml

Tensor library for machine learning
MIT License
11.25k stars 1.05k forks source link

Make it possible linking ggml as external lib #1003

Closed ykhrustalev closed 2 weeks ago

ykhrustalev commented 3 weeks ago

The use of a relative path in the linking prevents linking when ggml is used as a vended library

CMake Error in vendor/ggml/src/CMakeLists.txt:
  Target "ggml" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/Volumes/workplace/ggml-impl/vendor/ggml/src/../include"

  which is prefixed in the source directory.