pytorch/cmake/Modules/FindRocksDB.cmake
Bram Wasti 0d5f3654b2 Adding back untracked files from manual github pull
Summary: Github import didn't work and the manual import lost some files.

Reviewed By: Yangqing

Differential Revision: D4408509

fbshipit-source-id: ec8edb8c02876410f0ef212bde6847a7ba327fe4
2017-01-12 08:59:19 -08:00

25 lines
868 B
CMake

# Find the RocksDB libraries
#
# The following variables are optionally searched for defaults
# ROCKSDB_ROOT_DIR: Base directory where all RocksDB components are found
#
# The following are set after configuration is done:
# ROCKSDB_FOUND
# RocksDB_INCLUDE_DIR
# RocksDB_LIBRARIES
find_path(RocksDB_INCLUDE_DIR NAMES rocksdb/db.h
PATHS ${ROCKSDB_ROOT_DIR} ${ROCKSDB_ROOT_DIR}/include)
find_library(RocksDB_LIBRARIES NAMES rocksdb
PATHS ${ROCKSDB_ROOT_DIR} ${ROCKSDB_ROOT_DIR}/lib)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(RocksDB DEFAULT_MSG RocksDB_INCLUDE_DIR RocksDB_LIBRARIES)
if(ROCKSDB_FOUND)
message(STATUS "Found RocksDB (include: ${RocksDB_INCLUDE_DIR}, library: ${RocksDB_LIBRARIES})")
mark_as_advanced(RocksDB_INCLUDE_DIR RocksDB_LIBRARIES)
endif()