since rgw_common is an OBJECT library, we can't use
target_link_libraries() for its dependency on spawn. we add its
include directories manually already with
$<TARGET_PROPERTY:spawn,INTERFACE_INCLUDE_DIRECTORIES>, but this didn't
pull in the compile definitions. this ultimately prevented the
WITH_BOOST_VALGRIND option from passing the BOOST_USE_VALGRIND
definition attached to boost::context
Signed-off-by: Casey Bodley <cbodley@redhat.com>
target_include_directories(rgw_common PRIVATE
$<TARGET_PROPERTY:spawn,INTERFACE_INCLUDE_DIRECTORIES>)
+target_compile_definitions(rgw_common PRIVATE
+ $<TARGET_PROPERTY:spawn,INTERFACE_COMPILE_DEFINITIONS>)
if(WITH_LTTNG)
# rgw/rgw_op.cc includes "tracing/rgw_op.h"