mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
14 lines
662 B
CMake
14 lines
662 B
CMake
include("${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake")
|
|
add_headers_and_sources(loggers .)
|
|
|
|
# Standart version depends on DBMS and works with text log
|
|
add_library(loggers ${loggers_sources} ${loggers_headers})
|
|
target_compile_definitions (loggers PRIVATE -DWITH_TEXT_LOG)
|
|
target_link_libraries(loggers PRIVATE dbms clickhouse_common_io)
|
|
target_include_directories(loggers PUBLIC ..)
|
|
|
|
# Lightweight version doesn't work with textlog and also doesn't depend on DBMS
|
|
add_library(loggers_no_text_log ${loggers_sources} ${loggers_headers})
|
|
target_link_libraries(loggers_no_text_log PRIVATE clickhouse_common_io)
|
|
target_include_directories(loggers PUBLIC ..)
|