mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Github import didn't work and the manual import lost some files. Reviewed By: Yangqing Differential Revision: D4408509 fbshipit-source-id: ec8edb8c02876410f0ef212bde6847a7ba327fe4
25 lines
868 B
CMake
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()
|
|
|