From: Kefu Chai Date: Wed, 18 Jun 2025 02:16:26 +0000 (+0800) Subject: cmake: link ceph_test_keyvaluedb directly against kv library X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba6e10a5af0cae9be3f762a52221a209b45ebb67;p=ceph.git cmake: link ceph_test_keyvaluedb directly against kv library Fix incorrect transitive dependency by linking ceph_test_keyvaluedb directly against the kv library instead of relying on transitive linkage through the os library. The test includes headers from kv/KeyValueDB.h and kv/RocksDBStore.h, which are provided by the kv target, not os. This change makes the dependency explicit and corrects the build configuration. Signed-off-by: Kefu Chai --- diff --git a/src/test/objectstore/CMakeLists.txt b/src/test/objectstore/CMakeLists.txt index 754aec71f1a..4c3ba482501 100644 --- a/src/test/objectstore/CMakeLists.txt +++ b/src/test/objectstore/CMakeLists.txt @@ -45,7 +45,7 @@ add_subdirectory(allocsim) add_executable(ceph_test_keyvaluedb test_kv.cc) target_link_libraries(ceph_test_keyvaluedb - os + kv ceph-common ${UNITTEST_LIBS} global