cmake : allow external ggml

This commit is contained in:
Borislav Stanimirov 2024-07-08 15:46:28 +03:00
parent 3f2d538b81
commit dc4ee89561
No known key found for this signature in database
GPG key ID: 85AD7C1E5581FC30

View file

@ -115,7 +115,10 @@ llama_option_depr(WARNING LLAMA_SYCL_F16 GGML_SYCL_F16)
# build the library # 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) add_subdirectory(src)
# #