From 7d3b85294195e1cdac5eb4cbf98b13392641d73a Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 3 Feb 2021 15:17:19 -0500 Subject: [PATCH] cmake/rgw: forward spawn's compile options to rgw_common object library 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 $, 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 --- src/rgw/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index 12b42e4077f5..2de15201b5f8 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -182,6 +182,8 @@ target_include_directories(rgw_common PRIVATE "${LUA_INCLUDE_DIR}") target_include_directories(rgw_common PRIVATE $) +target_compile_definitions(rgw_common PRIVATE + $) if(WITH_LTTNG) # rgw/rgw_op.cc includes "tracing/rgw_op.h" -- 2.47.3