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.
16 lines
382 B
CMake
16 lines
382 B
CMake
option (ENABLE_ULID "Enable ulid" ${ENABLE_LIBRARIES})
|
|
|
|
if (NOT ENABLE_ULID)
|
|
message(STATUS "Not using ulid")
|
|
return()
|
|
endif()
|
|
|
|
set (LIBRARY_DIR "${Datastore_SOURCE_DIR}/contrib/ulid-c")
|
|
|
|
set (SRCS
|
|
"${LIBRARY_DIR}/src/ulid.c"
|
|
)
|
|
|
|
add_library(_ulid ${SRCS})
|
|
target_include_directories(_ulid SYSTEM PUBLIC "${LIBRARY_DIR}/include")
|
|
add_library(ch_contrib::ulid ALIAS _ulid) |