Add PWL related classes into rbd_types. And fix the build issue when
both SSD and RWL are enabled.
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
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