diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 5759818a87f818..d70a6ace5dc1a0 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -1339,7 +1339,7 @@ target_link_libraries(ggml PRIVATE Threads::Threads ${GGML_EXTRA_LIBS}) find_library(MATH_LIBRARY m) if (MATH_LIBRARY) if (NOT WIN32 OR NOT GGML_SYCL) - target_link_libraries(ggml PRIVATE ${MATH_LIBRARY}) + target_link_libraries(ggml PRIVATE m) endif() endif()