From 95bbde356afb0c0d074c5a3c87a49bcbd0bd1410 Mon Sep 17 00:00:00 2001 From: Jeet Jain Date: Mon, 8 Aug 2022 09:54:54 -0600 Subject: [PATCH] rgw: [CORTX-32688] include motr sources for radosgw-admin tool in cmake file Signed-off-by: Jeet Jain --- src/rgw/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index dacb1783f9f2ee..2bb219c76e99be 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -393,6 +393,10 @@ set(radosgw_admin_srcs rgw_sync_checkpoint.cc rgw_orphan.cc) add_executable(radosgw-admin ${radosgw_admin_srcs}) +target_include_directories(radosgw-admin PRIVATE "/usr/include/motr") +target_compile_options(radosgw-admin PRIVATE "-Wno-attributes") +target_compile_definitions(radosgw-admin + PRIVATE "M0_EXTERN=extern" "M0_INTERNAL=") target_link_libraries(radosgw-admin ${rgw_libs} librados cls_rgw_client cls_otp_client cls_lock_client cls_refcount_client cls_log_client cls_timeindex_client neorados_cls_fifo