2019-06-21 15:31:37 +00:00
|
|
|
include(${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake)
|
|
|
|
add_headers_and_sources(clickhouse_functions_gatherutils .)
|
|
|
|
add_library(clickhouse_functions_gatherutils ${clickhouse_functions_gatherutils_sources} ${clickhouse_functions_gatherutils_headers})
|
2019-07-03 16:53:20 +00:00
|
|
|
target_link_libraries(clickhouse_functions_gatherutils PRIVATE dbms)
|
2019-06-21 15:31:37 +00:00
|
|
|
|
|
|
|
if (CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE" OR CMAKE_BUILD_TYPE_UC STREQUAL "RELWITHDEBINFO" OR CMAKE_BUILD_TYPE_UC STREQUAL "MINSIZEREL")
|
|
|
|
# Won't generate debug info for files with heavy template instantiation to achieve faster linking and lower size.
|
|
|
|
target_compile_options(clickhouse_functions_gatherutils PRIVATE "-g0")
|
|
|
|
endif ()
|