mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
77bd2624ea
* Fix building without submodules * Fix more gcc9 warnings * was wrong! ../dbms/src/IO/WriteBufferAIO.cpp:277:54: error: result of comparison 'ssize_t' (aka 'long') > 9223372036854775807 is always false [-Werror,-Wtautological-type-limit-compare] if ((static_cast<ssize_t>(flush_buffer.offset()) > std::numeric_limits<off_t>::max()) || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * mimalloc off MI_OVERRIDE * Fix freebsd build * Fix shared build * Fix build in gcc9 * Fix split build * fix * fix * fix * fix * clean * zstd * Update CMakeLists.txt * Update Defines.h * Try fix -Wsign-compare * Freebsd fix * Add missing libs * Fix double-conversion include for copy-headers * Fix zlib link * Fix includes for arcadia * Fix includes for arcadia * Fix includes for arcadia * Freebsd fix * Arcadia fixes * Update QueryProfiler.cpp * Freebsd fix * clean * 19.11: Fixes for arcadia porting (#6223) * fix glibc-compatibility * M_LIBRARY fix * wip * Fix * Fix arm build * unwind fix * Update CMakeLists.txt
31 lines
992 B
CMake
31 lines
992 B
CMake
set(H3_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/h3/src/h3lib)
|
|
set(H3_BINARY_DIR ${ClickHouse_BINARY_DIR}/contrib/h3/src/h3lib)
|
|
|
|
set(SRCS
|
|
${H3_SOURCE_DIR}/lib/algos.c
|
|
${H3_SOURCE_DIR}/lib/baseCells.c
|
|
${H3_SOURCE_DIR}/lib/bbox.c
|
|
${H3_SOURCE_DIR}/lib/coordijk.c
|
|
${H3_SOURCE_DIR}/lib/faceijk.c
|
|
${H3_SOURCE_DIR}/lib/geoCoord.c
|
|
${H3_SOURCE_DIR}/lib/h3Index.c
|
|
${H3_SOURCE_DIR}/lib/h3UniEdge.c
|
|
${H3_SOURCE_DIR}/lib/linkedGeo.c
|
|
${H3_SOURCE_DIR}/lib/localij.c
|
|
${H3_SOURCE_DIR}/lib/mathExtensions.c
|
|
${H3_SOURCE_DIR}/lib/polygon.c
|
|
${H3_SOURCE_DIR}/lib/vec2d.c
|
|
${H3_SOURCE_DIR}/lib/vec3d.c
|
|
${H3_SOURCE_DIR}/lib/vertexGraph.c
|
|
)
|
|
|
|
configure_file(${H3_SOURCE_DIR}/include/h3api.h.in ${H3_BINARY_DIR}/include/h3api.h)
|
|
|
|
add_library(h3 ${SRCS})
|
|
target_include_directories(h3 SYSTEM PUBLIC ${H3_SOURCE_DIR}/include)
|
|
target_include_directories(h3 SYSTEM PUBLIC ${H3_BINARY_DIR}/include)
|
|
target_compile_definitions(h3 PRIVATE H3_HAVE_VLA)
|
|
if(M_LIBRARY)
|
|
target_link_libraries(h3 PRIVATE ${M_LIBRARY})
|
|
endif()
|