include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/src/fmt/include")
endif()
+# in osd/PeeringState.h, the number of elements in PeeringState::Active::reactions
+# is now 21 which exceeds the default value of BOOST_MPL_LIMIT_VECTOR_SIZE, which
+# is 20. so we need to override it. see
+# https://www.boost.org/doc/libs/1_74_0/libs/mpl/doc/refmanual/limit-list-size.html
+# link with this library, if your code includes osd/PeeringState.h (indirectly)
+add_library(Boost::MPL INTERFACE IMPORTED)
+set_target_properties(Boost::MPL PROPERTIES
+ INTERFACE_COMPILE_DEFINITIONS
+ "BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS;BOOST_MPL_LIMIT_LIST_SIZE=30")
+
if(WITH_SEASTAR)
find_package(c-ares 1.13.0 QUIET)
if(NOT c-ares_FOUND)
endif()
add_library(osd STATIC ${osd_srcs})
target_link_libraries(osd
- PUBLIC dmclock::dmclock
+ PUBLIC dmclock::dmclock Boost::MPL
PRIVATE os heap_profiler cpu_profiler ${CMAKE_DL_LIBS})
if(WITH_LTTNG)
add_dependencies(osd osd-tp pg-tp)