Sfoglia il codice sorgente

ggml : link MATH_LIBRARY not by its full path (#9339)

Michael Podvitskiy 1 anno fa
parent
commit
a6a3a5c531
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ggml/src/CMakeLists.txt

+ 1 - 1
ggml/src/CMakeLists.txt

@@ -1341,7 +1341,7 @@ list(APPEND GGML_EXTRA_LIBS_PRIVATE Threads::Threads)
 find_library(MATH_LIBRARY m)
 if (MATH_LIBRARY)
     if (NOT WIN32 OR NOT GGML_SYCL)
-        target_link_libraries(ggml PRIVATE ${MATH_LIBRARY})
+        list(APPEND GGML_EXTRA_LIBS_PRIVATE m)
     endif()
 endif()