cmake : allow external ggml

This commit is contained in:
Borislav Stanimirov 2024-07-08 17:08:55 +03:00 committed by Georgi Gerganov
parent 1c31f9d4a8
commit 16d72504fe

View File

@ -120,7 +120,10 @@ whisper_option_depr(WARNING WHISPER_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)
#