File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,7 @@ add_subdirectory(src)
168168# utils, programs, examples and tests
169169#
170170
171- if (NOT LLAMA_BUILD_EXAMPLES)
172- # curl is only needed for examples
171+ if (NOT LLAMA_BUILD_EXAMPLES OR NOT LLAMA_BUILD_COMMON)
173172 set (LLAMA_CURL OFF )
174173endif ()
175174
Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ set(LLAMA_COMMON_EXTRA_LIBS build_info)
8585
8686# Use curl to download model url
8787if (LLAMA_CURL)
88- find_package (CURL REQUIRED)
88+ find_package (CURL)
89+ if (NOT CURL_FOUND)
90+ message (FATAL_ERROR "Could NOT find CURL. Hint: to disable this feature, set -DLLAMA_CURL=OFF" )
91+ endif ()
8992 target_compile_definitions (${TARGET} PUBLIC LLAMA_USE_CURL)
9093 include_directories (${CURL_INCLUDE_DIRS} )
9194 find_library (CURL_LIBRARY curl REQUIRED)
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ endif()
133133llama_target_and_test(test -log .cpp)
134134llama_target_and_test(test -chat-template.cpp)
135135
136- # this fails on windows (github hosted runner) due to missing .NET, so we disable it
136+ # this fails on windows (github hosted runner) due to curl DLL not found (exit code 0xc0000135)
137137if (NOT WIN32 )
138138 llama_target_and_test(test -arg-parser.cpp)
139139endif ()
You can’t perform that action at this time.
0 commit comments