]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: make the linkage to pmem::pmemobj public 39829/head
authorKefu Chai <kchai@redhat.com>
Sat, 6 Mar 2021 07:43:33 +0000 (15:43 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 8 Mar 2021 08:57:25 +0000 (09:57 +0100)
commit75889e8e6309183cab079f55fd2dfa9affe15f34
treec5d52d975a1d08ba1afcb269853fe161c13f441e
parent7a5149f9f845f54a7eb75b7c61ab4c69695b18cc
cmake: make the linkage to pmem::pmemobj public

tools/ceph-dencoder/rbd_types.cc includes Types.h which in turn includes
libpmemobj.h via librbd/cache/pwl/Types.h. and ceph-dencoder pulls in the
rbd_type.cc's linked libraries by linking against rbd_types. but before
this change, rbd_types links against pmem::pmemobj as a PRIVATE library.

so, if we want to pull in rbd_types linkage we should always link
rbd_types as a PUBLIC library. as rbd_types include libpmemobj.h in its
header file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a7e86a0d4463e5c1d4b614d7596df99eed4e42c5)
src/librbd/CMakeLists.txt