From c63b33b61a80d3f544b3a222fbdaf08bfc814361 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 3 Jun 2019 16:34:46 +0800 Subject: [PATCH] cmake: link libkv against libheap_profiler PriorityCache.cc uses `ceph_heap_*` functions, and libkv contains `PriorityCache.cc`, so it should link against libheap_profiler. Signed-off-by: Kefu Chai --- src/kv/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kv/CMakeLists.txt b/src/kv/CMakeLists.txt index c75bf332a29..057eb82601a 100644 --- a/src/kv/CMakeLists.txt +++ b/src/kv/CMakeLists.txt @@ -12,4 +12,6 @@ endif (WITH_LEVELDB) add_library(kv STATIC ${kv_srcs} $) -target_link_libraries(kv ${LEVELDB_LIBRARIES} RocksDB::RocksDB) +target_link_libraries(kv ${LEVELDB_LIBRARIES} + RocksDB::RocksDB + heap_profiler) -- 2.39.5