mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 03:44:35 +00:00
llama : disable warnings for 3rd party sha1 dependency (#10527)
This commit is contained in:
parent
be0e350c8b
commit
30ec398321
@ -4,10 +4,17 @@ install(TARGETS ${TARGET} RUNTIME)
|
|||||||
|
|
||||||
# clibs dependencies
|
# clibs dependencies
|
||||||
include_directories(deps/)
|
include_directories(deps/)
|
||||||
|
|
||||||
add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
|
add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
|
||||||
target_link_libraries(${TARGET} PRIVATE xxhash)
|
target_link_libraries(${TARGET} PRIVATE xxhash)
|
||||||
|
|
||||||
add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
|
add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
|
||||||
target_link_libraries(${TARGET} PRIVATE sha1)
|
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)
|
add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
|
||||||
target_link_libraries(${TARGET} PRIVATE sha256)
|
target_link_libraries(${TARGET} PRIVATE sha256)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user