]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: link libkv against libheap_profiler
authorKefu Chai <kchai@redhat.com>
Mon, 3 Jun 2019 08:34:46 +0000 (16:34 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 3 Jun 2019 08:41:23 +0000 (16:41 +0800)
PriorityCache.cc uses `ceph_heap_*` functions, and libkv contains
`PriorityCache.cc`, so it should link against libheap_profiler.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/kv/CMakeLists.txt

index c75bf332a2987580ee74fe5fc9a6fd06dd7ded73..057eb82601aff56586766cf026434da6e01677a4 100644 (file)
@@ -12,4 +12,6 @@ endif (WITH_LEVELDB)
 add_library(kv STATIC ${kv_srcs}
   $<TARGET_OBJECTS:common_prioritycache_obj>)
 
-target_link_libraries(kv ${LEVELDB_LIBRARIES} RocksDB::RocksDB)
+target_link_libraries(kv ${LEVELDB_LIBRARIES}
+  RocksDB::RocksDB
+  heap_profiler)