ceph/cmake/modules/Findrocksdb.cmake
Bassam Tabbara 615b4b2600 cmake: support for external rocksdb
add support for building with an external rocksdb.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2017-01-16 09:33:32 -08:00

19 lines
586 B
CMake

# Find the native Rocksdb includes and library
# This module defines
# ROCKSDB_INCLUDE_DIR, where to find rocksdb/db.h, Set when
# ROCKSDB_INCLUDE_DIR is found.
# ROCKSDB_LIBRARIES, libraries to link against to use Rocksdb.
# ROCKSDB_FOUND, If false, do not try to use Rocksdb.
find_path(ROCKSDB_INCLUDE_DIR rocksdb/db.h)
find_library(ROCKSDB_LIBRARIES rocksdb)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Rocksdb DEFAULT_MSG
ROCKSDB_LIBRARIES ROCKSDB_INCLUDE_DIR)
mark_as_advanced(
ROCKSDB_INCLUDE_DIR
ROCKSDB_LIBRARIES)