Skip to content

Commit e597e50

Browse files
authored
build: fix build error in Windows env with OneAPI setup (#10107)
1 parent 85679d3 commit e597e50

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)