mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +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
63 lines
2.2 KiB
CMake
63 lines
2.2 KiB
CMake
set(LIBXML2_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libxml2)
|
|
set(LIBXML2_BINARY_DIR ${ClickHouse_BINARY_DIR}/contrib/libxml2)
|
|
|
|
set(SRCS
|
|
${LIBXML2_SOURCE_DIR}/SAX.c
|
|
${LIBXML2_SOURCE_DIR}/entities.c
|
|
${LIBXML2_SOURCE_DIR}/encoding.c
|
|
${LIBXML2_SOURCE_DIR}/error.c
|
|
${LIBXML2_SOURCE_DIR}/parserInternals.c
|
|
${LIBXML2_SOURCE_DIR}/parser.c
|
|
${LIBXML2_SOURCE_DIR}/tree.c
|
|
${LIBXML2_SOURCE_DIR}/hash.c
|
|
${LIBXML2_SOURCE_DIR}/list.c
|
|
${LIBXML2_SOURCE_DIR}/xmlIO.c
|
|
${LIBXML2_SOURCE_DIR}/xmlmemory.c
|
|
${LIBXML2_SOURCE_DIR}/uri.c
|
|
${LIBXML2_SOURCE_DIR}/valid.c
|
|
${LIBXML2_SOURCE_DIR}/xlink.c
|
|
${LIBXML2_SOURCE_DIR}/HTMLparser.c
|
|
${LIBXML2_SOURCE_DIR}/HTMLtree.c
|
|
${LIBXML2_SOURCE_DIR}/debugXML.c
|
|
${LIBXML2_SOURCE_DIR}/xpath.c
|
|
${LIBXML2_SOURCE_DIR}/xpointer.c
|
|
${LIBXML2_SOURCE_DIR}/xinclude.c
|
|
${LIBXML2_SOURCE_DIR}/nanohttp.c
|
|
${LIBXML2_SOURCE_DIR}/nanoftp.c
|
|
${LIBXML2_SOURCE_DIR}/DOCBparser.c
|
|
${LIBXML2_SOURCE_DIR}/catalog.c
|
|
${LIBXML2_SOURCE_DIR}/globals.c
|
|
${LIBXML2_SOURCE_DIR}/threads.c
|
|
${LIBXML2_SOURCE_DIR}/c14n.c
|
|
${LIBXML2_SOURCE_DIR}/xmlstring.c
|
|
${LIBXML2_SOURCE_DIR}/buf.c
|
|
${LIBXML2_SOURCE_DIR}/xmlregexp.c
|
|
${LIBXML2_SOURCE_DIR}/xmlschemas.c
|
|
${LIBXML2_SOURCE_DIR}/xmlschemastypes.c
|
|
${LIBXML2_SOURCE_DIR}/xmlunicode.c
|
|
${LIBXML2_SOURCE_DIR}/triostr.c
|
|
#${LIBXML2_SOURCE_DIR}/trio.c
|
|
${LIBXML2_SOURCE_DIR}/xmlreader.c
|
|
${LIBXML2_SOURCE_DIR}/relaxng.c
|
|
${LIBXML2_SOURCE_DIR}/dict.c
|
|
${LIBXML2_SOURCE_DIR}/SAX2.c
|
|
${LIBXML2_SOURCE_DIR}/xmlwriter.c
|
|
${LIBXML2_SOURCE_DIR}/legacy.c
|
|
${LIBXML2_SOURCE_DIR}/chvalid.c
|
|
${LIBXML2_SOURCE_DIR}/pattern.c
|
|
${LIBXML2_SOURCE_DIR}/xmlsave.c
|
|
${LIBXML2_SOURCE_DIR}/xmlmodule.c
|
|
${LIBXML2_SOURCE_DIR}/schematron.c
|
|
${LIBXML2_SOURCE_DIR}/xzlib.c
|
|
)
|
|
add_library(libxml2 ${SRCS})
|
|
|
|
target_link_libraries(libxml2 PRIVATE ${ZLIB_LIBRARIES} ${CMAKE_DL_LIBS})
|
|
if(M_LIBRARY)
|
|
target_link_libraries(libxml2 PRIVATE ${M_LIBRARY})
|
|
endif()
|
|
|
|
target_include_directories(libxml2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/linux_x86_64/include)
|
|
target_include_directories(libxml2 PUBLIC ${LIBXML2_SOURCE_DIR}/include)
|
|
target_include_directories(libxml2 PRIVATE ${ZLIB_INCLUDE_DIR}/include)
|