Skip to content

Commit 920a7cb

Browse files
kylo5abyarthw
authored andcommitted
build: fix build error in Windows env with OneAPI setup (ggml-org#10107)
1 parent 96c20e4 commit 920a7cb

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
@@ -1402,7 +1402,7 @@ list(APPEND GGML_EXTRA_LIBS_PRIVATE Threads::Threads)
14021402

14031403
find_library(MATH_LIBRARY m)
14041404
if (MATH_LIBRARY)
1405-
if (NOT WIN32 OR NOT GGML_SYCL)
1405+
if (NOT WIN32 OR NOT DEFINED ENV{ONEAPI_ROOT})
14061406
list(APPEND GGML_EXTRA_LIBS_PRIVATE m)
14071407
endif()
14081408
endif()

0 commit comments

Comments
 (0)