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.
21 lines
569 B
CMake
21 lines
569 B
CMake
if (NOT OS_LINUX)
|
|
message (STATUS "Not building librseq because it is Linux-only (uses rseq syscall and <linux/*> headers)")
|
|
return ()
|
|
endif ()
|
|
|
|
set (LIBRSEQ_SOURCE_DIR "${Datastore_SOURCE_DIR}/contrib/librseq")
|
|
|
|
add_library (_librseq STATIC
|
|
"${LIBRSEQ_SOURCE_DIR}/src/rseq.c"
|
|
"${LIBRSEQ_SOURCE_DIR}/src/smp.c"
|
|
)
|
|
|
|
target_include_directories (_librseq SYSTEM
|
|
PUBLIC "${LIBRSEQ_SOURCE_DIR}/include"
|
|
PRIVATE "${LIBRSEQ_SOURCE_DIR}/src"
|
|
)
|
|
|
|
target_compile_definitions (_librseq PRIVATE _GNU_SOURCE)
|
|
|
|
add_library (ch_contrib::librseq ALIAS _librseq)
|