Skip to content

Commit a457551

Browse files
authored
cmake : do not search for curl libraries by ourselves (#14613)
* cmake : do not search for curl libraries by ourselves * run : do not search for curl libraries by ourselves
1 parent 704bb7a commit a457551

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

common/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ if (LLAMA_CURL)
8686
endif()
8787
target_compile_definitions(${TARGET} PUBLIC LLAMA_USE_CURL)
8888
include_directories(${CURL_INCLUDE_DIRS})
89-
find_library(CURL_LIBRARY curl REQUIRED)
90-
set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} ${CURL_LIBRARY})
89+
set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} ${CURL_LIBRARIES})
9190
endif ()
9291

9392
if (LLAMA_LLGUIDANCE)

tools/run/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ if (LLAMA_CURL)
77
find_package(CURL REQUIRED)
88
target_compile_definitions(${TARGET} PUBLIC LLAMA_USE_CURL)
99
include_directories(${CURL_INCLUDE_DIRS})
10-
find_library(CURL_LIBRARY curl REQUIRED)
11-
set(LLAMA_RUN_EXTRA_LIBS ${LLAMA_RUN_EXTRA_LIBS} ${CURL_LIBRARY})
10+
set(LLAMA_RUN_EXTRA_LIBS ${LLAMA_RUN_EXTRA_LIBS} ${CURL_LIBRARIES})
1211
endif ()
1312

1413
install(TARGETS ${TARGET} RUNTIME)

0 commit comments

Comments
 (0)