mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-29 18:33:58 +00:00
185ade4c0c
Summary: This pr enables linking all the supported compression libraries via cmake. Closes https://github.com/facebook/rocksdb/pull/2552 Differential Revision: D5620607 Pulled By: yiwu-arbug fbshipit-source-id: b6949181f305bfdf04a98f898c92fd0caba0c45a
22 lines
548 B
CMake
22 lines
548 B
CMake
# - Find Bzip2
|
|
# Find the bzip2 compression library and includes
|
|
#
|
|
# BZIP2_INCLUDE_DIR - where to find bzlib.h, etc.
|
|
# BZIP2_LIBRARIES - List of libraries when using bzip2.
|
|
# BZIP2_FOUND - True if bzip2 found.
|
|
|
|
find_path(BZIP2_INCLUDE_DIR
|
|
NAMES bzlib.h
|
|
HINTS ${BZIP2_ROOT_DIR}/include)
|
|
|
|
find_library(BZIP2_LIBRARIES
|
|
NAMES bz2
|
|
HINTS ${BZIP2_ROOT_DIR}/lib)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(bzip2 DEFAULT_MSG BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(
|
|
BZIP2_LIBRARIES
|
|
BZIP2_INCLUDE_DIR)
|