try fix cmake

This commit is contained in:
Concedo
2026-08-21 12:57:22 +08:00
parent da4540629a
commit d42dc9b943
-5
View File
@@ -5,8 +5,6 @@ if (COMMAND llama_add_compile_flags)
endif()
set(VENDOR_SRCS
xxhash/xxhash.c
sha1/sha1.c
sha256/sha256.c
)
@@ -27,8 +25,5 @@ else()
endif()
set_source_files_properties(${VENDOR_SRCS} PROPERTIES COMPILE_OPTIONS ${NO_WARN_FLAG})
# sha1 lives in a namespace to avoid a clash with boringssl, see scripts/sync_vendor.py
set_source_files_properties(sha1/sha1.c PROPERTIES LANGUAGE CXX)
# sha256.c includes "rotate-bits/rotate-bits.h", so consumers get this dir too
target_include_directories(${TARGET} PUBLIC .)