1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
Denis Khalikov fa8dc815a7 MCOL-4814 Add a cmake build option to enable LZ4 compression.
This patch adds an option for cmake flags to enable lz4 compression.
2021-07-16 17:57:11 +03:00

20 lines
488 B
CMake

include_directories( ${ENGINE_COMMON_INCLUDES} ${SNAPPY_INCLUDE_DIR} )
########### next target ###############
set(compress_LIB_SRCS
idbcompress.cpp)
add_definitions(-DNDEBUG)
add_library(compress SHARED ${compress_LIB_SRCS})
target_link_libraries(compress ${SNAPPY_LIBRARIES})
IF(HAVE_LZ4)
MESSAGE_ONCE(STATUS "LINK WITH LZ4")
target_link_libraries(compress ${LZ4_LIBRARIES})
ENDIF()
install(TARGETS compress DESTINATION ${ENGINE_LIBDIR} COMPONENT columnstore-engine)