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

This commit is contained in:
Michael Podvitskiy 2024-09-16 13:06:50 +02:00 committed by GitHub
parent d54c21df7e
commit a6a3a5c531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()