blob: 8b0781aaa335795b31cf3fc12e26704c07a83efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
FIND_PACKAGE(LibLZMA)
SET(CPACK_RPM_provider-lzma_PACKAGE_SUMMARY "LZMA compression support in the server and storage engines" PARENT_SCOPE)
SET(CPACK_RPM_provider-lzma_PACKAGE_DESCRIPTION "LZMA compression support in the server and storage engines" PARENT_SCOPE)
IF (LIBLZMA_FOUND)
GET_PROPERTY(dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
LIST(REMOVE_ITEM dirs ${CMAKE_SOURCE_DIR}/include/providers)
SET_PROPERTY(DIRECTORY PROPERTY INCLUDE_DIRECTORIES "${dirs}")
INCLUDE_DIRECTORIES(${LIBLZMA_INCLUDE_DIRS})
MYSQL_ADD_PLUGIN(provider_lzma plugin.c COMPONENT provider-lzma
LINK_LIBRARIES ${LIBLZMA_LIBRARIES} CONFIG provider_lzma.cnf)
ENDIF()
|