librhash: Update build within CMake for rhash 1.4.4

This commit is contained in:
Brad King
2023-11-28 17:49:47 -05:00
parent 54eafb156f
commit 6a5a9278fa
2 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ set(librhash_sources
librhash/sha512.c
librhash/sha512.h
librhash/ustd.h
librhash/util.c
librhash/util.h
)
@@ -36,5 +37,6 @@ include_directories(
)
add_library(cmlibrhash ${librhash_sources})
target_compile_definitions(cmlibrhash PRIVATE NO_IMPORT_EXPORT)
install(FILES COPYING DESTINATION ${CMAKE_DOC_DIR}/cmlibrhash)

View File

@@ -594,6 +594,7 @@ LIBRHASH_C_SOURCES="\
librhash/sha256.c \
librhash/sha3.c \
librhash/sha512.c \
librhash/util.c \
"
JSONCPP_CXX_SOURCES="\
@@ -1792,6 +1793,7 @@ else
libs="${libs} -luv"
fi
librhash_c_flags="-DNO_IMPORT_EXPORT"
if test "x${bootstrap_system_librhash}" != "x"; then
if test `which pkg-config`; then
use_librhash_flags="`pkg-config --cflags librhash`"
@@ -1946,7 +1948,7 @@ fi
if test "x${bootstrap_system_librhash}" = "x"; then
for a in ${LIBRHASH_C_SOURCES}; do
src=`cmake_escape_artifact "${cmake_source_dir}/Utilities/cmlibrhash/${a}"`
write_source_rule "c" "rhash-`cmake_obj ${a}`" "${src}" ""
write_source_rule "c" "rhash-`cmake_obj ${a}`" "${src}" "${librhash_c_flags}"
done
fi
if test "x${bootstrap_system_jsoncpp}" = "x"; then