From: Zhenwei Jin Date: Fri, 1 Nov 2024 03:09:59 +0000 (+0800) Subject: build: fix build error in Windows env with OneAPI setup (llama/10107) X-Git-Tag: upstream/0.0.1642~248 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b4a1a7e19a0948dcd8302db69c4c821682b5c50b;p=pkg%2Fggml%2Fsources%2Fggml build: fix build error in Windows env with OneAPI setup (llama/10107) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 153cc8dc..2b7b812d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()