mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
15 lines
672 B
CMake
15 lines
672 B
CMake
FIND_PACKAGE(Snappy)
|
|
|
|
SET(CPACK_RPM_provider-snappy_PACKAGE_SUMMARY "Snappy compression support in the server and storage engines" PARENT_SCOPE)
|
|
SET(CPACK_RPM_provider-snappy_PACKAGE_DESCRIPTION "Snappy compression support in the server and storage engines" PARENT_SCOPE)
|
|
|
|
IF (SNAPPY_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(${SNAPPY_INCLUDE_DIRS})
|
|
|
|
MYSQL_ADD_PLUGIN(provider_snappy plugin.c COMPONENT provider-snappy
|
|
LINK_LIBRARIES ${SNAPPY_LIBRARIES} CONFIG provider_snappy.cnf)
|
|
ENDIF()
|