Fix building with CMake > 3, GCC 8 and old Boost version (e.g. CentOS 7 with cmake3 and gcc8)

This commit is contained in:
Carles Fernandez 2020-08-19 15:24:09 +02:00
parent d997f7bf56
commit 25da76d1a2
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 7 additions and 1 deletions

View File

@ -579,6 +579,7 @@ if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
endif()
################################################################################
# Log4cpp - http://log4cpp.sourceforge.net/
################################################################################
@ -839,6 +840,11 @@ if(Boost_VERSION_STRING VERSION_LESS 1.70.0)
)
endif()
# Fox for CentOS 7 with cmake3 and gcc8
if(Boost_VERSION_STRING VERSION_LESS "1.60")
set(USE_GENERIC_LAMBDAS OFF)
endif()
# Fix for Boost >= 1.73
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
set(USE_BOOST_BIND_PLACEHOLDERS ON)

View File

@ -111,7 +111,7 @@ GalileoE5bPcpsAcquisitionTest_msg_rx::GalileoE5bPcpsAcquisitionTest_msg_rx(Concu
#if HAS_GENERIC_LAMBDA
[this](pmt::pmt_t&& PH1) { msg_handler_channel_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE5bPcpsAcquisitionTest_msg_rx::msg_handler_channel_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE5bPcpsAcquisitionTest_msg_rx::msg_handler_channel_events, this, _1));