2021-08-31 14:09:47 +02:00
|
|
|
FIND_PACKAGE(LZO)
|
|
|
|
|
2021-12-08 14:57:37 +01:00
|
|
|
SET(CPACK_RPM_provider-lzo_PACKAGE_SUMMARY "LZO compression support in the server and storage engines" PARENT_SCOPE)
|
|
|
|
SET(CPACK_RPM_provider-lzo_PACKAGE_DESCRIPTION "LZO compression support in the server and storage engines" PARENT_SCOPE)
|
|
|
|
|
2021-08-31 14:09:47 +02:00
|
|
|
IF (LZO_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(${LZO_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
MYSQL_ADD_PLUGIN(provider_lzo plugin.c COMPONENT provider-lzo
|
|
|
|
LINK_LIBRARIES ${LZO_LIBRARIES} CONFIG provider_lzo.cnf)
|
|
|
|
ENDIF()
|