mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
249fe561f4
Replxx: When disabled via -DENABLE_LIBRARIES=0 or -DENABLE_REPLXX (the latter was undocumented) the build broke because replxx symbols were used since [0] in header LineReader.h. This header should in theory stay clean of replxx but doesn't for efficiency reasons. This change makes compilation of replxx mandatory. As replxx is quite small, I guess this is okay. (The alternative is to litter the code with ifdefs for non-replxx and a replxx paths.) [0] https://github.com/ClickHouse/ClickHouse/pull/33201
24 lines
693 B
CMake
24 lines
693 B
CMake
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/replxx")
|
|
|
|
set(SRCS
|
|
"${LIBRARY_DIR}/src/conversion.cxx"
|
|
"${LIBRARY_DIR}/src/ConvertUTF.cpp"
|
|
"${LIBRARY_DIR}/src/escape.cxx"
|
|
"${LIBRARY_DIR}/src/history.cxx"
|
|
"${LIBRARY_DIR}/src/terminal.cxx"
|
|
"${LIBRARY_DIR}/src/prompt.cxx"
|
|
"${LIBRARY_DIR}/src/replxx_impl.cxx"
|
|
"${LIBRARY_DIR}/src/replxx.cxx"
|
|
"${LIBRARY_DIR}/src/util.cxx"
|
|
"${LIBRARY_DIR}/src/wcwidth.cpp"
|
|
)
|
|
|
|
add_library (_replxx ${SRCS})
|
|
target_include_directories(_replxx SYSTEM PUBLIC "${LIBRARY_DIR}/include")
|
|
|
|
if (COMPILER_CLANG)
|
|
target_compile_options(_replxx PRIVATE -Wno-documentation)
|
|
endif ()
|
|
|
|
add_library(ch_contrib::replxx ALIAS _replxx)
|