From 020aee9363c675b8a07e663f9747b065d8c5a1aa Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Sun, 25 Oct 2015 22:07:03 -0400 Subject: [PATCH] xxHash: add as submodule Signed-off-by: Matt Benjamin --- .gitmodules | 3 +++ src/CMakeLists.txt | 3 +++ src/xxHash | 1 + 3 files changed, 7 insertions(+) create mode 160000 src/xxHash diff --git a/.gitmodules b/.gitmodules index 0ded82d66c4..09ce623163c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -26,3 +26,6 @@ [submodule "src/spdk"] path = src/spdk url = https://github.com/ceph/spdk.git +[submodule "src/xxHash"] + path = src/xxHash + url = https://github.com/Cyan4973/xxHash.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d7486bd596e..6bc0d4026fa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -189,6 +189,9 @@ add_library(crush STATIC ${crush_srcs}) add_subdirectory(json_spirit) +add_subdirectory(xxHash/cmake_unofficial) +include_directories("${CMAKE_SOURCE_DIR}/src/xxHash") + set(xio_common_srcs) if(HAVE_XIO) list(APPEND xio_common_srcs diff --git a/src/xxHash b/src/xxHash new file mode 160000 index 00000000000..44a6297b298 --- /dev/null +++ b/src/xxHash @@ -0,0 +1 @@ +Subproject commit 44a6297b298e59ab7452defe859f21ed8371aa1c