Skip to content

Commit 30ec398

Browse files
authored
llama : disable warnings for 3rd party sha1 dependency (ggml-org#10527)
1 parent be0e350 commit 30ec398

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/gguf-hash/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ install(TARGETS ${TARGET} RUNTIME)
44

55
# clibs dependencies
66
include_directories(deps/)
7+
78
add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
89
target_link_libraries(${TARGET} PRIVATE xxhash)
10+
911
add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
1012
target_link_libraries(${TARGET} PRIVATE sha1)
13+
if (NOT MSVC)
14+
# disable warnings in 3rd party code
15+
target_compile_options(sha1 PRIVATE -w)
16+
endif()
17+
1118
add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
1219
target_link_libraries(${TARGET} PRIVATE sha256)
1320

0 commit comments

Comments
 (0)