File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ option(LLAMA_SANITIZE_THREAD "llama: enable thread sanitizer" OFF)
62
62
option (LLAMA_SANITIZE_ADDRESS "llama: enable address sanitizer" OFF )
63
63
option (LLAMA_SANITIZE_UNDEFINED "llama: enable undefined sanitizer" OFF )
64
64
65
+ # utils
66
+ option (LLAMA_BUILD_COMMON "llama: build common utils library" ON )
67
+
65
68
# extra artifacts
66
69
option (LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE} )
67
70
option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
@@ -191,15 +194,17 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
191
194
DESTINATION lib/pkgconfig )
192
195
193
196
#
194
- # programs, examples and tests
197
+ # utils, programs, examples and tests
195
198
#
196
199
197
- add_subdirectory (common )
200
+ if (LLAMA_BUILD_COMMON )
201
+ add_subdirectory (common )
202
+ endif ()
198
203
199
204
if (LLAMA_BUILD_TESTS AND NOT CMAKE_JS_VERSION )
200
205
include (CTest )
201
206
add_subdirectory (tests )
202
- endif ()
207
+ endif ()
203
208
204
209
if (LLAMA_BUILD_EXAMPLES )
205
210
add_subdirectory (examples )
You can’t perform that action at this time.
0 commit comments