Skip to content

Commit

Permalink
llama-cpp: add 4079 (conan-io#26227)
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido authored Dec 20, 2024
1 parent 9a66422 commit 314b92f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/llama-cpp/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
sources:
"b4079":
url: "https://github.com/ggerganov/llama.cpp/archive/refs/tags/b4079.tar.gz"
sha256: "79093413dcdbd30f83b800aeb958c87369fdfdaf4e5603b094185898ff404a32"
"b3542":
url: "https://github.com/ggerganov/llama.cpp/archive/refs/tags/b3542.tar.gz"
sha256: "6f8b23d930400fce5708d2c85022ef33f1083af8f6ac395abefadacee0942e78"
"b3040":
url: "https://github.com/ggerganov/llama.cpp/archive/refs/tags/b3040.tar.gz"
sha256: "020e040139660eb40113503bb1057d5387677d249b990e008e04821532f7cd62"
patches:
"b4079":
- patch_file: "patches/b4079-001-curl-patch-targets.patch"
"b3542":
- patch_file: "patches/b3542-001-curl-patch-targets.patch"
"b3040":
Expand Down
15 changes: 15 additions & 0 deletions recipes/llama-cpp/all/patches/b4079-001-curl-patch-targets.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index 5ab1ffa1..4cd462ee 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -78,9 +78,7 @@ set(LLAMA_COMMON_EXTRA_LIBS build_info)
if (LLAMA_CURL)
find_package(CURL REQUIRED)
add_definitions(-DLLAMA_USE_CURL)
- include_directories(${CURL_INCLUDE_DIRS})
- find_library(CURL_LIBRARY curl REQUIRED)
- set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} ${CURL_LIBRARY})
+ list(APPEND LLAMA_COMMON_EXTRA_LIBS CURL::libcurl)
endif ()

target_include_directories(${TARGET} PUBLIC .)
2 changes: 2 additions & 0 deletions recipes/llama-cpp/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"b4079":
folder: "all"
"b3542":
folder: "all"
"b3040":
Expand Down

0 comments on commit 314b92f

Please sign in to comment.