cmake : allow external ggml (#8370)

This commit is contained in:
Borislav Stanimirov 2024-07-09 11:38:00 +03:00 committed by GitHub
parent 9beb2dda03
commit 9925ca4087
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
#