Skip to content

Commit 6455796

Browse files
committed
no curl if no examples
1 parent 6080f6e commit 6455796

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ add_subdirectory(src)
168168
# utils, programs, examples and tests
169169
#
170170

171+
if (NOT LLAMA_BUILD_EXAMPLES)
172+
# curl is only needed for examples
173+
set(LLAMA_CURL OFF)
174+
endif()
175+
171176
if (LLAMA_BUILD_COMMON)
172177
add_subdirectory(common)
173178
endif()

0 commit comments

Comments
 (0)