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>
add_executable(ceph_test_keyvaluedb
test_kv.cc)
target_link_libraries(ceph_test_keyvaluedb
- os
+ kv
ceph-common
${UNITTEST_LIBS}
global