cmake: refined conditions for math library linking on windows
This commit is contained in:
parent
ef6dada60c
commit
5bd9d35eb0
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue