stanimirovb commited on
Commit
e6c1269
·
1 Parent(s): 7b043ae

cmake : allow external ggml

Browse files
Files changed (1) hide show
  1. CMakeLists.txt +4 -1
CMakeLists.txt CHANGED
@@ -120,7 +120,10 @@ whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
120
  # build the library
121
  #
122
 
123
- add_subdirectory(ggml)
 
 
 
124
  add_subdirectory(src)
125
 
126
  #
 
120
  # build the library
121
  #
122
 
123
+ if (NOT TARGET ggml)
124
+ add_subdirectory(ggml)
125
+ # ... otherwise assume ggml is added by a parent CMakeLists.txt
126
+ endif()
127
  add_subdirectory(src)
128
 
129
  #