cmake: do not link blk against pmem::pmemobj

as blk does not use pmem::pmemobj, librbd does.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-03-05 21:15:59 +08:00
parent c4408499e4
commit 3e991ad1db

View File

@ -40,9 +40,8 @@ if(WITH_ZBD)
target_link_libraries(blk PRIVATE ${ZBD_LIBRARIES})
endif()
if(WITH_BLUESTORE_PMEM OR WITH_RBD_RWL)
if(WITH_BLUESTORE_PMEM)
target_link_libraries(blk
PUBLIC pmem::pmemobj
PRIVATE pmem::pmem)
endif()