mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
librhash: Update build within CMake for rhash 1.4.4
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user