ceph/cmake/modules/Findrocksdb.cmake
Nathan Cutler 4acd2cef35 cmake: align cmake names of library packages
The cmake package names of libraries are case-sensitive. The name used in
FIND_PACKAGE_HANDLE_STANDARD_ARGS - e.g. "cryptopp" - must match the name used
in the module name - "Findcryptopp.cmake" - as well as the name used in
find_package() call - "find_package(cryptopp REQUIRED)"

Note that the term "package" here refers to a cmake abstraction, *not* an
actual RPM or Debian package.

Fixes: http://tracker.ceph.com/issues/19853
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-05-04 11:14:43 +02: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)