]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not link blk against pmem::pmemobj
authorKefu Chai <kchai@redhat.com>
Fri, 5 Mar 2021 13:15:59 +0000 (21:15 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 8 Mar 2021 08:57:25 +0000 (09:57 +0100)
as blk does not use pmem::pmemobj, librbd does.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3e991ad1dbd8bf32175294500c38175bfb0038a7)

src/blk/CMakeLists.txt

index c1de15ecfb7d7146be8740902bb84ae11e289cc6..b424482deec72801468597166f0b48c133f829c7 100644 (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()