Skip to content

Commit 9925ca4

Browse files
authored
cmake : allow external ggml (#8370)
1 parent 9beb2dd commit 9925ca4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ llama_option_depr(WARNING LLAMA_SYCL_F16 GGML_SYCL_F16)
115115
# build the library
116116
#
117117

118-
add_subdirectory(ggml)
118+
if (NOT TARGET ggml)
119+
add_subdirectory(ggml)
120+
# ... otherwise assume ggml is added by a parent CMakeLists.txt
121+
endif()
119122
add_subdirectory(src)
120123

121124
#

0 commit comments

Comments
 (0)