Skip to content

Commit 3b2720b

Browse files
iboBiThalay
authored andcommitted
cmake : allow external ggml
1 parent 48a085a commit 3b2720b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
120120
# build the library
121121
#
122122

123-
add_subdirectory(ggml)
123+
if (NOT TARGET ggml)
124+
add_subdirectory(ggml)
125+
# ... otherwise assume ggml is added by a parent CMakeLists.txt
126+
endif()
124127
add_subdirectory(src)
125128

126129
#

0 commit comments

Comments
 (0)