File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1331,6 +1331,10 @@ if (EMSCRIPTEN)
13311331 set_target_properties (ggml PROPERTIES COMPILE_FLAGS "-msimd128" )
13321332endif ()
13331333
1334+ if (CMAKE_SYSTEM_NAME MATCHES "Android" )
1335+ list (APPEND GGML_EXTRA_LIBS_PRIVATE dl) # Must be linked explicitly
1336+ endif ()
1337+
13341338target_compile_definitions (ggml PUBLIC ${GGML_CDEF_PUBLIC} )
13351339target_include_directories (ggml PUBLIC ../include )
13361340target_include_directories (ggml PRIVATE . ${GGML_EXTRA_INCLUDES} )
@@ -1341,7 +1345,7 @@ list(APPEND GGML_EXTRA_LIBS_PRIVATE Threads::Threads)
13411345
13421346find_library (MATH_LIBRARY m)
13431347if (MATH_LIBRARY)
1344- if (NOT WIN32 OR NOT GGML_SYCL)
1348+ if (NOT WIN32 OR NOT GGML_SYCL OR NOT CMAKE_SYSTEM_NAME MATCHES "Android" )
13451349 list (APPEND GGML_EXTRA_LIBS_PRIVATE m)
13461350 endif ()
13471351endif ()
You can’t perform that action at this time.
0 commit comments