Skip to content

Commit 496db9e

Browse files
committed
cmake : allow external ggml
1 parent 3f2d538 commit 496db9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ llama_option_depr(WARNING LLAMA_SYCL_F16 GGML_SYCL_F16)
114114
#
115115
# build the library
116116
#
117-
118-
add_subdirectory(ggml)
117+
if (NOT TARGET ggml)
118+
add_subdirectory(ggml)
119+
# ... otherwise assume ggml is added by a parent CMakelists.txt
120+
endif()
119121
add_subdirectory(src)
120122

121123
#

0 commit comments

Comments
 (0)