Skip to content

Commit a6a3a5c

Browse files
authored
ggml : link MATH_LIBRARY not by its full path (#9339)
1 parent d54c21d commit a6a3a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ list(APPEND GGML_EXTRA_LIBS_PRIVATE Threads::Threads)
13411341
find_library(MATH_LIBRARY m)
13421342
if (MATH_LIBRARY)
13431343
if (NOT WIN32 OR NOT GGML_SYCL)
1344-
target_link_libraries(ggml PRIVATE ${MATH_LIBRARY})
1344+
list(APPEND GGML_EXTRA_LIBS_PRIVATE m)
13451345
endif()
13461346
endif()
13471347

0 commit comments

Comments
 (0)