From: lixiaoy1 Date: Thu, 10 Dec 2020 09:33:34 +0000 (-0500) Subject: librbd/cmake: Add missed PWL related types X-Git-Tag: v17.0.0~284^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=efe5daa1fcb971d002522d486069131ed8aaffb9;p=ceph-ci.git librbd/cmake: Add missed PWL related types Add PWL related classes into rbd_types. And fix the build issue when both SSD and RWL are enabled. Signed-off-by: Li, Xiaoyan --- diff --git a/src/librbd/CMakeLists.txt b/src/librbd/CMakeLists.txt index dfd7940a4e9..20bfd542796 100644 --- a/src/librbd/CMakeLists.txt +++ b/src/librbd/CMakeLists.txt @@ -9,9 +9,18 @@ set(librbd_types_srcs watcher/Types.cc WatchNotifyTypes.cc) +if(WITH_RBD_RWL OR WITH_RBD_SSD_CACHE) + list(APPEND librbd_types_srcs cache/pwl/Types.cc) +endif() + add_library(rbd_types STATIC ${librbd_types_srcs}) +if (WITH_RBD_RWL AND WITH_RBD_SSD_CACHE) + target_link_libraries(rbd_types + PRIVATE pmem::pmemobj) +endif() + set(librbd_internal_srcs AsioEngine.cc AsyncObjectThrottle.cc