Files
zooqueen 7306e24eea datastore rebrand fix: ${ClickHouse_SOURCE_DIR} -> ${Datastore_SOURCE_DIR} (project var)
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.
2026-06-21 21:03:07 -07:00

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)