endif()
add_library(rgw_common STATIC ${librgw_common_srcs})
+target_compile_definitions(rgw_common
+ PUBLIC "FMT_HEADER_ONLY")
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-Wimplicit-const-int-float-conversion"
#include <iostream>
#include <mutex>
#include <condition_variable>
-// this seems safe to use, at least for now--arguably, we should
-// prefer header-only fmt, in general
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include "fmt/format.h"
#include <map>
#include "rgw_sal_store.h"
#include <initializer_list>
#include <map>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include <sqlite3.h>
#include <stdexcept>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "store.h"
#include <memory>
#include <sqlite3.h>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "sqlite/statement.h"
#include <optional>
#include <string_view>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "include/rados/librados.hpp"
#include <string_view>
#include <vector>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "include/rados/librados.hpp"
#ifndef CEPH_RGW_DATA_SYNC_H
#define CEPH_RGW_DATA_SYNC_H
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <boost/smart_ptr/intrusive_ptr.hpp>
#include <boost/smart_ptr/intrusive_ref_counter.hpp>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "include/buffer.h"
#include <boost/container/flat_map.hpp>
#include <boost/system/error_code.hpp>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "include/rados/librados.hpp"
#include <liboath/oath.h>
}
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "auth/Crypto.h"
#include <atomic>
#include <unordered_map>
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include <fmt/format.h>
#include "common/ceph_crypto.h"
#include "rgw_lc_tier.h"
#include "rgw_notify.h"
-// this seems safe to use, at least for now--arguably, we should
-// prefer header-only fmt, in general
-#undef FMT_HEADER_ONLY
-#define FMT_HEADER_ONLY 1
#include "fmt/format.h"
#include "services/svc_sys_obj.h"