mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Fix build
This commit is contained in:
parent
c6daf0a6eb
commit
57b3fbf206
17
contrib/ulid-c-cmake/CMakeLists.txt
Normal file
17
contrib/ulid-c-cmake/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
option (ENABLE_ULID "Enable ulid" ${ENABLE_LIBRARIES})
|
||||||
|
|
||||||
|
if (NOT ENABLE_ULID)
|
||||||
|
message(STATUS "Not using ulid")
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/ulid-c")
|
||||||
|
|
||||||
|
set (SRCS
|
||||||
|
"${LIBRARY_DIR}/include/ulid.h"
|
||||||
|
"${LIBRARY_DIR}/include/ulid.c"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(_ulid ${SRCS})
|
||||||
|
target_include_directories(_ulid SYSTEM PUBLIC "${LIBRARY_DIR}/include")
|
||||||
|
add_library(ch_contrib::ulid ALIAS _ulid)
|
Loading…
Reference in New Issue
Block a user