mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
Tools: Fix regression bug to support Boost < 1.66
This commit is contained in:
committed by
Dennis Klein
parent
291d00c73f
commit
03e6cea586
@@ -206,6 +206,9 @@ set_target_properties(${_target} PROPERTIES LABELS coverage)
|
||||
if(FAST_BUILD)
|
||||
set_target_properties(${_target} PROPERTIES OUTPUT_NAME FairMQ)
|
||||
endif()
|
||||
if(Boost_VERSION VERSION_LESS 1.66)
|
||||
target_compile_definitions(${_target} PUBLIC FAIR_MQ_HAS_NO_ASIO_IO_CONTEXT)
|
||||
endif()
|
||||
|
||||
#######################
|
||||
# include directories #
|
||||
|
@@ -18,8 +18,12 @@ namespace boost
|
||||
namespace asio
|
||||
{
|
||||
|
||||
#ifdef FAIR_MQ_HAS_NO_ASIO_IO_CONTEXT
|
||||
class io_service;
|
||||
#else
|
||||
class io_context;
|
||||
typedef class io_context io_service;
|
||||
#endif
|
||||
|
||||
} // namespace asio
|
||||
} // namespace boost
|
||||
|
Reference in New Issue
Block a user