From: Diego Devesa Date: Tue, 26 Nov 2024 20:01:47 +0000 (+0100) Subject: llama : disable warnings for 3rd party sha1 dependency (#10527) X-Git-Tag: upstream/0.0.4488~299 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=30ec39832165627dd6ed98938df63adfc6e6a21a;p=pkg%2Fggml%2Fsources%2Fllama.cpp llama : disable warnings for 3rd party sha1 dependency (#10527) --- diff --git a/examples/gguf-hash/CMakeLists.txt b/examples/gguf-hash/CMakeLists.txt index 633f4553..7a494ce3 100644 --- a/examples/gguf-hash/CMakeLists.txt +++ b/examples/gguf-hash/CMakeLists.txt @@ -4,10 +4,17 @@ install(TARGETS ${TARGET} RUNTIME) # clibs dependencies include_directories(deps/) + add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h) target_link_libraries(${TARGET} PRIVATE xxhash) + add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h) target_link_libraries(${TARGET} PRIVATE sha1) +if (NOT MSVC) + # disable warnings in 3rd party code + target_compile_options(sha1 PRIVATE -w) +endif() + add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h) target_link_libraries(${TARGET} PRIVATE sha256)