1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-06 16:48:06 +00:00

Fix building against latest GNU Radio

Replace boost::any by std::any
This commit is contained in:
Carles Fernandez
2021-10-30 05:43:22 +02:00
parent 2fc172c0f0
commit a7a140862b
56 changed files with 448 additions and 95 deletions

View File

@@ -377,6 +377,20 @@ if(GNURADIO_VERSION VERSION_GREATER 3.8.99)
endif()
endif()
# Check if PMT uses boost::any or std::any
if(GNURADIO_PMT_INCLUDE_DIRS)
file(STRINGS ${GNURADIO_PMT_INCLUDE_DIRS}/pmt/pmt.h _pmt_content)
set(_uses_boost TRUE)
foreach(_loop_var IN LISTS _pmt_content)
string(STRIP "${_loop_var}" _file_line)
if("#include <any>" STREQUAL "${_file_line}")
set(_uses_boost FALSE)
endif()
endforeach()
if(${_uses_boost})
set(PMT_USES_BOOST_ANY TRUE)
endif()
endif()
set_package_properties(GNURADIO PROPERTIES
URL "https://www.gnuradio.org/"