summaryrefslogtreecommitdiffstats
path: root/src/rocksdb/cmake/RocksDBConfig.cmake.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/rocksdb/cmake/RocksDBConfig.cmake.in
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/rocksdb/cmake/RocksDBConfig.cmake.in')
-rw-r--r--src/rocksdb/cmake/RocksDBConfig.cmake.in54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/rocksdb/cmake/RocksDBConfig.cmake.in b/src/rocksdb/cmake/RocksDBConfig.cmake.in
new file mode 100644
index 000000000..0bd14be11
--- /dev/null
+++ b/src/rocksdb/cmake/RocksDBConfig.cmake.in
@@ -0,0 +1,54 @@
+@PACKAGE_INIT@
+
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/modules")
+
+include(CMakeFindDependencyMacro)
+
+set(GFLAGS_USE_TARGET_NAMESPACE @GFLAGS_USE_TARGET_NAMESPACE@)
+
+if(@WITH_JEMALLOC@)
+ find_dependency(JeMalloc)
+endif()
+
+if(@WITH_GFLAGS@)
+ find_dependency(gflags CONFIG)
+ if(NOT gflags_FOUND)
+ find_dependency(gflags)
+ endif()
+endif()
+
+if(@WITH_SNAPPY@)
+ find_dependency(Snappy CONFIG)
+ if(NOT Snappy_FOUND)
+ find_dependency(Snappy)
+ endif()
+endif()
+
+if(@WITH_ZLIB@)
+ find_dependency(ZLIB)
+endif()
+
+if(@WITH_BZ2@)
+ find_dependency(BZip2)
+endif()
+
+if(@WITH_LZ4@)
+ find_dependency(lz4)
+endif()
+
+if(@WITH_ZSTD@)
+ find_dependency(zstd)
+endif()
+
+if(@WITH_NUMA@)
+ find_dependency(NUMA)
+endif()
+
+if(@WITH_TBB@)
+ find_dependency(TBB)
+endif()
+
+find_dependency(Threads)
+
+include("${CMAKE_CURRENT_LIST_DIR}/RocksDBTargets.cmake")
+check_required_components(RocksDB)