mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	build : add LLAMA_OPENSSL option (#16287)
Introduce a new `LLAMA_OPENSSL` option, enabled by default. This preserves the previous default (libcurl first, OpenSSL as fallback), while allowing OpenSSL to be disabled if desired. Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
		| @@ -92,6 +92,7 @@ option(LLAMA_TOOLS_INSTALL  "llama: install tools"        ${LLAMA_TOOLS_INSTALL_ | ||||
|  | ||||
| # 3rd party libs | ||||
| option(LLAMA_CURL       "llama: use libcurl to download model from an URL" ON) | ||||
| option(LLAMA_OPENSSL    "llama: use openssl to download model from an URL" ON) | ||||
| option(LLAMA_LLGUIDANCE "llama-common: include LLGuidance library for structured output in common utils" OFF) | ||||
|  | ||||
| # Required for relocatable CMake package | ||||
|   | ||||
| @@ -87,7 +87,8 @@ if (LLAMA_CURL) | ||||
|     target_compile_definitions(${TARGET} PUBLIC LLAMA_USE_CURL) | ||||
|     include_directories(${CURL_INCLUDE_DIRS}) | ||||
|     set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} ${CURL_LIBRARIES}) | ||||
| else() | ||||
|  | ||||
| elseif (LLAMA_OPENSSL) | ||||
|     find_package(OpenSSL) | ||||
|     if (OpenSSL_FOUND) | ||||
|         include(CheckCSourceCompiles) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Adrien Gallouët
					Adrien Gallouët