This commit is contained in:
Michael Podvitskiy 2025-02-10 13:43:14 +01:00 committed by GitHub
commit 3f724b7dae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -339,7 +339,7 @@ target_link_libraries(ggml-base PRIVATE Threads::Threads)
find_library(MATH_LIBRARY m)
if (MATH_LIBRARY)
if (NOT WIN32 OR NOT DEFINED ENV{ONEAPI_ROOT})
if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC" OR DEFINED ENV{ONEAPI_ROOT}))
target_link_libraries(ggml-base PRIVATE m)
endif()
endif()