Skip to content

Commit

Permalink
cmake : allow external ggml (#8370)
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB authored Jul 9, 2024
1 parent 9beb2dd commit 9925ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ llama_option_depr(WARNING LLAMA_SYCL_F16 GGML_SYCL_F16)
# build the library
#

add_subdirectory(ggml)
if (NOT TARGET ggml)
add_subdirectory(ggml)
# ... otherwise assume ggml is added by a parent CMakeLists.txt
endif()
add_subdirectory(src)

#
Expand Down

0 comments on commit 9925ca4

Please sign in to comment.