mirror of
https://github.com/hanzoai/datastore.git
synced 2026-10-30 14:48:37 +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.
22 lines
604 B
CMake
22 lines
604 B
CMake
if (NOT ENABLE_LIBFIU)
|
|
message (STATUS "Not using libfiu")
|
|
return ()
|
|
endif ()
|
|
|
|
set(LIBFIU_DIR "${Datastore_SOURCE_DIR}/contrib/libfiu/")
|
|
|
|
set(LIBFIU_SOURCES
|
|
${LIBFIU_DIR}/libfiu/fiu.c
|
|
${LIBFIU_DIR}/libfiu/fiu-rc.c
|
|
${LIBFIU_DIR}/libfiu/backtrace.c
|
|
${LIBFIU_DIR}/libfiu/wtable.c
|
|
)
|
|
|
|
set(LIBFIU_HEADERS "${LIBFIU_DIR}/libfiu")
|
|
|
|
add_library(_libfiu ${LIBFIU_SOURCES})
|
|
target_compile_definitions(_libfiu PRIVATE DUMMY_BACKTRACE)
|
|
target_compile_definitions(_libfiu PUBLIC FIU_ENABLE)
|
|
target_include_directories(_libfiu PUBLIC ${LIBFIU_HEADERS})
|
|
add_library(ch_contrib::libfiu ALIAS _libfiu)
|