File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,6 @@ endif()
202202
203203# ggml
204204
205- # Search for the 'log' library on Android
206- if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Android" )
207- find_library (log -lib log )
208- set (GGML_EXTRA_LIBS ${GGML_EXTRA_LIBS} ${log -lib})
209- endif ()
210-
211205add_library (ggml-base
212206 ../include /ggml.h
213207 ../include /ggml-alloc.h
@@ -223,6 +217,14 @@ add_library(ggml-base
223217 ggml-aarch64.c
224218 ggml-aarch64.h)
225219
220+ # Search for the 'log' library on Android
221+ if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Android" )
222+ find_library (log -lib log )
223+ set (GGML_EXTRA_LIBS ${GGML_EXTRA_LIBS} ${log -lib})
224+
225+ target_link_libraries (ggml-base PUBLIC ${GGML_EXTRA_LIBS} )
226+ endif ()
227+
226228target_include_directories (ggml-base PRIVATE .)
227229
228230add_library (ggml
Original file line number Diff line number Diff line change 1+ Subproject commit 4565194ed7c32d1d2efa32ceab4d3c6cae006306
You can’t perform that action at this time.
0 commit comments