We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be0e350 commit 30ec398Copy full SHA for 30ec398
examples/gguf-hash/CMakeLists.txt
@@ -4,10 +4,17 @@ install(TARGETS ${TARGET} RUNTIME)
4
5
# clibs dependencies
6
include_directories(deps/)
7
+
8
add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
9
target_link_libraries(${TARGET} PRIVATE xxhash)
10
11
add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
12
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
18
add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
19
target_link_libraries(${TARGET} PRIVATE sha256)
20
0 commit comments