Skip to content

Commit ba6e10a

Browse files
committed
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 <[email protected]>
1 parent 5ab2e9f commit ba6e10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/objectstore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ add_subdirectory(allocsim)
4545
add_executable(ceph_test_keyvaluedb
4646
test_kv.cc)
4747
target_link_libraries(ceph_test_keyvaluedb
48-
os
48+
kv
4949
ceph-common
5050
${UNITTEST_LIBS}
5151
global

0 commit comments

Comments
 (0)