mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
project(Datastore) renamed the CMake auto-vars ClickHouse_SOURCE_DIR/BINARY_DIR; the contrib *-cmake glue + top-level CMakeLists submodule check still referenced the old names -> undefined -> false 'submodules not initialized'. Renamed all CMake refs (incl contrib glue). Found by spark build.
14 lines
541 B
CMake
14 lines
541 B
CMake
set (LIBRARY_DIR "${Datastore_SOURCE_DIR}/contrib/xxHash")
|
|
set (SRCS
|
|
"${LIBRARY_DIR}/xxhash.c"
|
|
)
|
|
|
|
add_library(xxHash ${SRCS})
|
|
target_include_directories(xxHash SYSTEM BEFORE INTERFACE "${LIBRARY_DIR}")
|
|
|
|
# XXH_INLINE_ALL - Make all functions inline, with implementations being directly included within xxhash.h. Inlining functions is beneficial for speed on small keys.
|
|
# https://github.com/Cyan4973/xxHash/tree/v0.8.2#build-modifiers
|
|
target_compile_definitions(xxHash PUBLIC XXH_INLINE_ALL)
|
|
|
|
add_library(ch_contrib::xxHash ALIAS xxHash)
|