Skip to content

Commit

Permalink
build: fix build error in Windows env with OneAPI setup (#10107)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylo5aby authored Nov 1, 2024
1 parent 85679d3 commit e597e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ list(APPEND GGML_EXTRA_LIBS_PRIVATE Threads::Threads)

find_library(MATH_LIBRARY m)
if (MATH_LIBRARY)
if (NOT WIN32 OR NOT GGML_SYCL)
if (NOT WIN32 OR NOT DEFINED ENV{ONEAPI_ROOT})
list(APPEND GGML_EXTRA_LIBS_PRIVATE m)
endif()
endif()
Expand Down

0 comments on commit e597e50

Please sign in to comment.