Skip to content

Commit a9a8eb0

Browse files
committed
CMakelists.txt: Disable LLAMA_BUILD_EXAMPLES and LAMA_BUILD_TESTS to reduce unnecessary options and speed up compilation.
1 parent a43d904 commit a9a8eb0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ if (LLAMA_BUILD)
6666
set(CMAKE_SKIP_RPATH FALSE)
6767

6868
# Enable building of the common library
69-
set(LLAMA_BUILD_COMMON ON CACHE BOOL "Build llama.cpp common library" FORCE)
69+
set(LLAMA_BUILD_COMMON ON CACHE BOOL "llama.cpp: build common utils library" FORCE)
70+
71+
# Disable building of examples
72+
set(LLAMA_BUILD_EXAMPLES OFF CACHE BOOL "llama.cpp: build examples" FORCE)
73+
74+
# Disable building of tests
75+
set(LLAMA_BUILD_TESTS OFF CACHE BOOL "llama.cpp: build tests" FORCE)
7076

7177
# Disable building curl support
72-
set(LLAMA_CURL OFF CACHE BOOL "llama.cpp: enable curl" FORCE)
78+
set(LLAMA_CURL OFF CACHE BOOL "llama.cpp: use libcurl to download model from an URL" FORCE)
7379

7480
# Enable build and link OpenSSL
7581
set(LLAMA_OPENSSL ON CACHE BOOL "llama.cpp: build and link OpenSSL" FORCE)

0 commit comments

Comments
 (0)