Skip to content

Commit bc851c8

Browse files
committed
Fix silence warnings
1 parent 64b5a14 commit bc851c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ggml/src/ggml-sycl/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ if (NOT oneMath_FOUND)
100100
FetchContent_MakeAvailable(ONEMATH)
101101
# Create alias to match with find_package targets name
102102
function(onemath_alias target)
103-
if (TARGET ${target})
103+
if (TARGET ${target}_obj)
104104
# Silence verbose warnings from external libraries
105-
target_compile_options(${target} PRIVATE -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-cast-qual)
105+
target_compile_options(${target}_obj PRIVATE -w)
106+
endif()
107+
if (TARGET ${target})
106108
add_library(ONEMATH::${target} ALIAS ${target})
107109
endif()
108110
endfunction()

0 commit comments

Comments
 (0)