]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: link ceph_test_keyvaluedb directly against kv library
authorKefu Chai <tchaikov@gmail.com>
Wed, 18 Jun 2025 02:16:26 +0000 (10:16 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 18 Jun 2025 03:26:32 +0000 (11:26 +0800)
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 <tchaikov@gmail.com>
src/test/objectstore/CMakeLists.txt

index 754aec71f1a204f1e83f032c3e46fe4c372073f0..4c3ba48250118d1a7eff31623b01904367e68d24 100644 (file)
@@ -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