boost::context is currently (1.63) unsupported for s390x and anyway
it makes sense to conditionalize Boost components so they are only
built with the Ceph components that need them (like is already being
done for mgr).
Fixes: http://tracker.ceph.com/issues/20048
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Tim Serong <tserong@suse.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
# Boost
option(WITH_SYSTEM_BOOST "require and build with system Boost" OFF)
+# Boost::thread depends on Boost::atomic, so list it explicitly.
set(BOOST_COMPONENTS
- thread system regex random program_options date_time iostreams coroutine context)
+ atomic thread system regex random program_options date_time iostreams)
set(BOOST_HEADER_COMPONENTS container)
if(WITH_MGR)
list(APPEND BOOST_COMPONENTS python)
endif()
+if(WITH_RADOSGW_BEAST_FRONTEND)
+ list(APPEND BOOST_COMPONENTS coroutine context)
+endif()
+
if (WITH_SYSTEM_BOOST)
if(ENABLE_SHARED)
set(Boost_USE_STATIC_LIBS OFF)