]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake : do not search for curl libraries by ourselves (#14613)
authorEric Zhang <redacted>
Thu, 10 Jul 2025 12:29:05 +0000 (20:29 +0800)
committerGitHub <redacted>
Thu, 10 Jul 2025 12:29:05 +0000 (15:29 +0300)
* cmake : do not search for curl libraries by ourselves

* run : do not search for curl libraries by ourselves

common/CMakeLists.txt
tools/run/CMakeLists.txt

index e4c1c55e4c7a7bee336ffbe204bc465c59b0b099..0ae4d698f080c621b54339d1b15d88ed24be46b2 100644 (file)
@@ -86,8 +86,7 @@ if (LLAMA_CURL)
     endif()
     target_compile_definitions(${TARGET} PUBLIC LLAMA_USE_CURL)
     include_directories(${CURL_INCLUDE_DIRS})
-    find_library(CURL_LIBRARY curl REQUIRED)
-    set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} ${CURL_LIBRARY})
+    set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} ${CURL_LIBRARIES})
 endif ()
 
 if (LLAMA_LLGUIDANCE)
index 7cff188ca69f0b799dba48ce63835aff78008799..d0189596980ebf3c24748839f88742943cbd866f 100644 (file)
@@ -7,8 +7,7 @@ if (LLAMA_CURL)
     find_package(CURL REQUIRED)
     target_compile_definitions(${TARGET} PUBLIC LLAMA_USE_CURL)
     include_directories(${CURL_INCLUDE_DIRS})
-    find_library(CURL_LIBRARY curl REQUIRED)
-    set(LLAMA_RUN_EXTRA_LIBS ${LLAMA_RUN_EXTRA_LIBS} ${CURL_LIBRARY})
+    set(LLAMA_RUN_EXTRA_LIBS ${LLAMA_RUN_EXTRA_LIBS} ${CURL_LIBRARIES})
 endif ()
 
 install(TARGETS ${TARGET} RUNTIME)