Unify criteria in target definitions, more informative names

This commit is contained in:
Carles Fernandez 2020-06-13 00:32:40 +02:00
parent 226689c359
commit 0df4277d36
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
96 changed files with 189 additions and 159 deletions

View File

@ -264,6 +264,18 @@ else()
set(LOCAL_INSTALL_BASE_DIR ${CMAKE_BINARY_DIR})
endif()
# Determine if CMake scripts make use of target_sources()
if(CMAKE_VERSION VERSION_GREATER 3.13)
set(USE_CMAKE_TARGET_SOURCES ON)
endif()
# Determine if we try to use generic lambdas
if(CMAKE_VERSION VERSION_GREATER 3.1 AND
NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND
(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
set(USE_GENERIC_LAMBDAS ON)
endif()
# Determine if we are using make or ninja
if(CMAKE_MAKE_PROGRAM MATCHES "make")
set(CMAKE_MAKE_PROGRAM_PRETTY_NAME "make")
@ -747,6 +759,14 @@ if(Boost_VERSION_STRING VERSION_GREATER 1.70.99)
endif()
endif()
if(Boost_VERSION_STRING VERSION_LESS 1.58.0)
set(USE_OLD_BOOST_MATH_COMMON_FACTOR ON)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
set(USE_BOOST_ASIO_IO_CONTEXT ON)
endif()
if(Boost_VERSION_STRING VERSION_LESS 1.73)
# Disable concepts to address https://github.com/boostorg/asio/issues/312
if(((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.9) OR
@ -778,6 +798,11 @@ if(Boost_VERSION_STRING VERSION_LESS 1.70.0)
)
endif()
# Fix for Boost >= 1.73
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
set(USE_BOOST_BIND_PLACEHOLDERS ON)
endif()
################################################################################
@ -797,7 +822,6 @@ check_cxx_source_compiles("
################################################################################
# Detect availability of std::put_time (Workaround for gcc < 5.0)
################################################################################
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#include <iomanip>
int main()

View File

@ -8,7 +8,7 @@
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(pvt_adapters STATIC)
target_sources(pvt_adapters
PRIVATE
@ -35,8 +35,11 @@ target_include_directories(pvt_adapters
${CMAKE_SOURCE_DIR}/src/core/interfaces
)
if(Boost_VERSION_STRING VERSION_LESS 1.58.0)
target_compile_definitions(pvt_adapters PRIVATE -DOLD_BOOST=1)
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
target_compile_definitions(pvt_adapters
PRIVATE
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
)
endif()
if(ENABLE_CLANG_TIDY)

View File

@ -30,7 +30,7 @@
#include "rtklib_rtkpos.h" // for rtkfree, rtkinit
#include <glog/logging.h> // for LOG
#include <iostream> // for operator<<
#if OLD_BOOST
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
#include <boost/math/common_factor_rt.hpp>
namespace bc = boost::math;
#else

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(pvt_gr_blocks STATIC)
target_sources(pvt_gr_blocks
PRIVATE
@ -49,7 +49,7 @@ if(GNURADIO_USES_STD_POINTERS)
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(pvt_gr_blocks
@ -73,14 +73,17 @@ if(ENABLE_CLANG_TIDY)
endif()
endif()
if(Boost_VERSION_STRING VERSION_LESS 1.58.0)
target_compile_definitions(pvt_gr_blocks PRIVATE -DOLD_BOOST=1)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
target_compile_definitions(pvt_gr_blocks
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
)
endif()
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(pvt_gr_blocks
PRIVATE
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -96,7 +96,7 @@ namespace fs = boost::filesystem;
namespace errorlib = boost::system;
#endif
#if OLD_BOOST
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
#include <boost/math/common_factor_rt.hpp>
namespace bc = boost::math;
#else
@ -194,7 +194,7 @@ rtklib_pvt_gs::rtklib_pvt_gs(uint32_t nchannels,
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_telemetry(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&rtklib_pvt_gs::msg_handler_telemetry, this, boost::placeholders::_1));
#else
boost::bind(&rtklib_pvt_gs::msg_handler_telemetry, this, _1));

View File

@ -46,7 +46,7 @@ set(PVT_LIB_HEADERS
list(SORT PVT_LIB_HEADERS)
list(SORT PVT_LIB_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(pvt_libs STATIC)
target_sources(pvt_libs
PRIVATE
@ -101,10 +101,10 @@ if(ENABLE_ARMA_NO_DEBUG)
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
if(USE_BOOST_ASIO_IO_CONTEXT)
target_compile_definitions(pvt_libs
PUBLIC
-DBOOST_GREATER_1_65
-DUSE_BOOST_ASIO_IO_CONTEXT
)
endif()

View File

@ -28,7 +28,7 @@
#include <string>
#include <vector>
#if BOOST_GREATER_1_65
#if USE_BOOST_ASIO_IO_CONTEXT
using b_io_context = boost::asio::io_context;
#else
using b_io_context = boost::asio::io_service;

View File

@ -49,7 +49,7 @@
#include <utility>
#include <vector>
#if BOOST_GREATER_1_65
#if USE_BOOST_ASIO_IO_CONTEXT
using b_io_context = boost::asio::io_context;
#else
using b_io_context = boost::asio::io_service;

View File

@ -80,7 +80,7 @@ endif()
list(SORT ACQ_ADAPTER_HEADERS)
list(SORT ACQ_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(acquisition_adapters STATIC)
target_sources(acquisition_adapters
PRIVATE

View File

@ -43,7 +43,7 @@ endif()
list(SORT ACQ_GR_BLOCKS_HEADERS)
list(SORT ACQ_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(acquisition_gr_blocks STATIC)
target_sources(acquisition_gr_blocks
PRIVATE

View File

@ -18,7 +18,7 @@ endif()
list(SORT ACQUISITION_LIB_HEADERS)
list(SORT ACQUISITION_LIB_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(acquisition_libs STATIC)
target_sources(acquisition_libs
PRIVATE

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(channel_adapters STATIC)
target_sources(channel_adapters
PRIVATE

View File

@ -20,7 +20,7 @@ set(CHANNEL_FSM_HEADERS
list(SORT CHANNEL_FSM_HEADERS)
list(SORT CHANNEL_FSM_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(channel_libs STATIC)
target_sources(channel_libs
PRIVATE
@ -56,7 +56,7 @@ if(GNURADIO_USES_STD_POINTERS)
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(channel_libs
@ -71,10 +71,10 @@ else()
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(channel_libs
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -44,7 +44,7 @@ channel_msg_receiver_cc::channel_msg_receiver_cc(std::shared_ptr<ChannelFsm> cha
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&channel_msg_receiver_cc::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&channel_msg_receiver_cc::msg_handler_events, this, _1));

View File

@ -21,7 +21,7 @@ set(COND_ADAPTER_HEADERS
list(SORT COND_ADAPTER_HEADERS)
list(SORT COND_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(conditioner_adapters STATIC)
target_sources(conditioner_adapters
PRIVATE

View File

@ -29,7 +29,7 @@ set(DATATYPE_ADAPTER_HEADERS
list(SORT DATATYPE_ADAPTER_HEADERS)
list(SORT DATATYPE_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(data_type_adapters STATIC)
target_sources(data_type_adapters
PRIVATE

View File

@ -23,7 +23,7 @@ set(DATA_TYPE_GR_BLOCKS_HEADERS
list(SORT DATA_TYPE_GR_BLOCKS_HEADERS)
list(SORT DATA_TYPE_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(data_type_gr_blocks STATIC)
target_sources(data_type_gr_blocks
PRIVATE

View File

@ -28,7 +28,7 @@ set(INPUT_FILTER_ADAPTER_HEADERS
list(SORT INPUT_FILTER_ADAPTER_HEADERS)
list(SORT INPUT_FILTER_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(input_filter_adapters STATIC)
target_sources(input_filter_adapters
PRIVATE

View File

@ -25,7 +25,7 @@ set(INPUT_FILTER_GR_BLOCKS_HEADERS
list(SORT INPUT_FILTER_GR_BLOCKS_HEADERS)
list(SORT INPUT_FILTER_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(input_filter_gr_blocks STATIC)
target_sources(input_filter_gr_blocks
PRIVATE

View File

@ -71,7 +71,7 @@ endif()
list(SORT GNSS_SPLIBS_HEADERS)
list(SORT GNSS_SPLIBS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(algorithms_libs STATIC)
target_sources(algorithms_libs
PRIVATE
@ -189,7 +189,7 @@ endif()
###############################################################################
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(gnss_sdr_flags STATIC)
target_sources(gnss_sdr_flags
PRIVATE

View File

@ -52,7 +52,7 @@ set(RTKLIB_LIB_HEADERS
list(SORT RTKLIB_LIB_HEADERS)
list(SORT RTKLIB_LIB_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(algorithms_libs_rtklib STATIC)
target_sources(algorithms_libs_rtklib
PRIVATE

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(obs_adapters STATIC)
target_sources(obs_adapters
PRIVATE

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(obs_gr_blocks STATIC)
target_sources(obs_gr_blocks
PRIVATE
@ -54,7 +54,7 @@ if(GNURADIO_USES_STD_POINTERS)
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(obs_gr_blocks
@ -69,10 +69,10 @@ else()
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(obs_gr_blocks
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -76,7 +76,7 @@ hybrid_observables_gs::hybrid_observables_gs(const Obs_Conf &conf_) : gr::block(
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_pvt_to_observables(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&hybrid_observables_gs::msg_handler_pvt_to_observables, this, boost::placeholders::_1));
#else
boost::bind(&hybrid_observables_gs::msg_handler_pvt_to_observables, this, _1));

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(observables_libs STATIC)
target_sources(observables_libs
PRIVATE

View File

@ -21,7 +21,7 @@ set(RESAMPLER_ADAPTER_HEADERS
list(SORT RESAMPLER_ADAPTER_HEADERS)
list(SORT RESAMPLER_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(resampler_adapters STATIC)
target_sources(resampler_adapters
PRIVATE

View File

@ -23,7 +23,7 @@ set(RESAMPLER_GR_BLOCKS_HEADERS
list(SORT RESAMPLER_GR_BLOCKS_HEADERS)
list(SORT RESAMPLER_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(resampler_gr_blocks STATIC)
target_sources(resampler_gr_blocks
PRIVATE

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(signal_generator_adapters STATIC)
target_sources(signal_generator_adapters
PRIVATE

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(signal_generator_gr_blocks STATIC)
target_sources(signal_generator_gr_blocks
PRIVATE

View File

@ -125,7 +125,7 @@ set(SIGNAL_SOURCE_ADAPTER_HEADERS
list(SORT SIGNAL_SOURCE_ADAPTER_HEADERS)
list(SORT SIGNAL_SOURCE_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(signal_source_adapters STATIC)
target_sources(signal_source_adapters
PRIVATE

View File

@ -43,7 +43,7 @@ set(SIGNAL_SOURCE_GR_BLOCKS_HEADERS
list(SORT SIGNAL_SOURCE_GR_BLOCKS_HEADERS)
list(SORT SIGNAL_SOURCE_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(signal_source_gr_blocks STATIC)
target_sources(signal_source_gr_blocks
PRIVATE
@ -104,21 +104,21 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
if(USE_BOOST_ASIO_IO_CONTEXT)
target_compile_definitions(signal_source_gr_blocks
PUBLIC
-DBOOST_GREATER_1_65
-DUSE_BOOST_ASIO_IO_CONTEXT
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(signal_source_gr_blocks
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(signal_source_gr_blocks

View File

@ -134,7 +134,7 @@ rtl_tcp_signal_source_c::rtl_tcp_signal_source_c(const std::string &address,
}
// 6. Start reading
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::asio::async_read(socket_, boost::asio::buffer(data_),
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, boost::placeholders::_1, boost::placeholders::_2)); // NOLINT(modernize-avoid-bind)
#else
@ -319,7 +319,7 @@ void rtl_tcp_signal_source_c::handle_read(const boost::system::error_code &ec,
// let woker know that more data is available
not_empty_.notify_one();
// Read some more
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::asio::async_read(socket_,
boost::asio::buffer(data_),
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, boost::placeholders::_1, boost::placeholders::_2)); // NOLINT(modernize-avoid-bind)

View File

@ -51,7 +51,7 @@ using rtl_tcp_signal_source_c_sptr = std::shared_ptr<rtl_tcp_signal_source_c>;
using rtl_tcp_signal_source_c_sptr = boost::shared_ptr<rtl_tcp_signal_source_c>;
#endif
#if BOOST_GREATER_1_65
#if USE_BOOST_ASIO_IO_CONTEXT
using b_io_context = boost::asio::io_context;
#else
using b_io_context = boost::asio::io_service;

View File

@ -36,7 +36,7 @@ set(SIGNAL_SOURCE_LIB_HEADERS
list(SORT SIGNAL_SOURCE_LIB_HEADERS)
list(SORT SIGNAL_SOURCE_LIB_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(signal_source_libs STATIC)
target_sources(signal_source_libs
PRIVATE

View File

@ -37,7 +37,7 @@ set(TELEMETRY_DECODER_ADAPTER_HEADERS
list(SORT TELEMETRY_DECODER_ADAPTER_HEADERS)
list(SORT TELEMETRY_DECODER_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(telemetry_decoder_adapters STATIC)
target_sources(telemetry_decoder_adapters
PRIVATE

View File

@ -34,7 +34,7 @@ set(TELEMETRY_DECODER_GR_BLOCKS_HEADERS
list(SORT TELEMETRY_DECODER_GR_BLOCKS_HEADERS)
list(SORT TELEMETRY_DECODER_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(telemetry_decoder_gr_blocks STATIC)
target_sources(telemetry_decoder_gr_blocks
PRIVATE

View File

@ -22,7 +22,7 @@ set(TELEMETRY_DECODER_LIB_HEADERS
list(SORT TELEMETRY_DECODER_LIB_HEADERS)
list(SORT TELEMETRY_DECODER_LIB_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(telemetry_decoder_libs STATIC)
target_sources(telemetry_decoder_libs
PRIVATE

View File

@ -25,7 +25,7 @@ set(TELEMETRY_DECODER_LIBSWIFTCNAV_HEADERS
list(SORT TELEMETRY_DECODER_LIBSWIFTCNAV_HEADERS)
list(SORT TELEMETRY_DECODER_LIBSWIFTCNAV_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(telemetry_decoder_libswiftcnav STATIC)
target_sources(telemetry_decoder_libswiftcnav
PRIVATE

View File

@ -76,7 +76,7 @@ set(TRACKING_ADAPTER_HEADERS
list(SORT TRACKING_ADAPTER_HEADERS)
list(SORT TRACKING_ADAPTER_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(tracking_adapters STATIC)
target_sources(tracking_adapters
PRIVATE

View File

@ -61,7 +61,7 @@ set(TRACKING_GR_BLOCKS_HEADERS
list(SORT TRACKING_GR_BLOCKS_HEADERS)
list(SORT TRACKING_GR_BLOCKS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(tracking_gr_blocks STATIC)
target_sources(tracking_gr_blocks
PRIVATE
@ -120,7 +120,7 @@ if(ENABLE_ARMA_NO_DEBUG)
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(tracking_gr_blocks
@ -135,10 +135,10 @@ else()
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(tracking_gr_blocks
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -101,7 +101,7 @@ dll_pll_veml_tracking::dll_pll_veml_tracking(const Dll_Pll_Conf &conf_) : gr::bl
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_telemetry_to_trk(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&dll_pll_veml_tracking::msg_handler_telemetry_to_trk, this, boost::placeholders::_1));
#else
boost::bind(&dll_pll_veml_tracking::msg_handler_telemetry_to_trk, this, _1));

View File

@ -91,7 +91,7 @@ dll_pll_veml_tracking_fpga::dll_pll_veml_tracking_fpga(const Dll_Pll_Conf_Fpga &
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_telemetry_to_trk(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&dll_pll_veml_tracking_fpga::msg_handler_telemetry_to_trk, this, boost::placeholders::_1));
#else
boost::bind(&dll_pll_veml_tracking_fpga::msg_handler_telemetry_to_trk, this, _1));

View File

@ -115,7 +115,7 @@ glonass_l1_ca_dll_pll_c_aid_tracking_cc::glonass_l1_ca_dll_pll_c_aid_tracking_cc
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, boost::placeholders::_1));
#else
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, _1));

View File

@ -112,7 +112,7 @@ glonass_l1_ca_dll_pll_c_aid_tracking_sc::glonass_l1_ca_dll_pll_c_aid_tracking_sc
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, boost::placeholders::_1));
#else
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, _1));

View File

@ -112,7 +112,7 @@ glonass_l2_ca_dll_pll_c_aid_tracking_cc::glonass_l2_ca_dll_pll_c_aid_tracking_cc
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, boost::placeholders::_1));
#else
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, _1));

View File

@ -110,7 +110,7 @@ glonass_l2_ca_dll_pll_c_aid_tracking_sc::glonass_l2_ca_dll_pll_c_aid_tracking_sc
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, boost::placeholders::_1));
#else
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, _1));

View File

@ -73,7 +73,7 @@ endif()
list(SORT TRACKING_LIB_HEADERS)
list(SORT TRACKING_LIB_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(tracking_libs STATIC)
target_sources(tracking_libs
PRIVATE
@ -111,10 +111,10 @@ if(NOT CMAKE_VERSION VERSION_GREATER 3.11)
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
if(USE_BOOST_ASIO_IO_CONTEXT)
target_compile_definitions(tracking_libs
PUBLIC
-DBOOST_GREATER_1_65
-DUSE_BOOST_ASIO_IO_CONTEXT
)
endif()

View File

@ -25,7 +25,7 @@
#include <boost/array.hpp>
#include <boost/asio.hpp>
#if BOOST_GREATER_1_65
#if USE_BOOST_ASIO_IO_CONTEXT
using b_io_context = boost::asio::io_context;
#else
using b_io_context = boost::asio::io_service;

View File

@ -47,7 +47,7 @@ endif()
list(SORT CORE_LIBS_HEADERS)
list(SORT CORE_LIBS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(core_libs STATIC)
target_sources(core_libs
PRIVATE
@ -80,7 +80,7 @@ if(GNURADIO_USES_STD_POINTERS)
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(core_libs
@ -95,10 +95,10 @@ else()
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(core_libs
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -45,7 +45,7 @@ channel_status_msg_receiver::channel_status_msg_receiver() : gr::block("channel_
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&channel_status_msg_receiver::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&channel_status_msg_receiver::msg_handler_events, this, _1));

View File

@ -16,7 +16,7 @@ list(SORT ASN_SUPL_SOURCES)
file(GLOB ASN_SUPL_HEADERS "${CMAKE_SOURCE_DIR}/src/core/libs/supl/asn-supl/*.h")
list(SORT ASN_SUPL_HEADERS)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(core_libs_supl STATIC)
target_sources(core_libs_supl
PRIVATE

View File

@ -23,7 +23,7 @@ set(CORE_MONITOR_LIBS_HEADERS
list(SORT CORE_MONITOR_LIBS_HEADERS)
list(SORT CORE_MONITOR_LIBS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(core_monitor STATIC)
target_sources(core_monitor
PRIVATE
@ -68,10 +68,10 @@ if(GNURADIO_USES_STD_POINTERS)
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
if(USE_BOOST_ASIO_IO_CONTEXT)
target_compile_definitions(core_monitor
PUBLIC
-DBOOST_GREATER_1_65
-DUSE_BOOST_ASIO_IO_CONTEXT
)
endif()

View File

@ -29,7 +29,7 @@
#include <string>
#include <vector>
#if BOOST_GREATER_1_65
#if USE_BOOST_ASIO_IO_CONTEXT
using b_io_context = boost::asio::io_context;
#else
using b_io_context = boost::asio::io_service;

View File

@ -44,7 +44,7 @@ set(GNSS_RECEIVER_INTERFACE_HEADERS
list(SORT GNSS_RECEIVER_INTERFACE_HEADERS)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(core_receiver STATIC)
target_sources(core_receiver
PRIVATE
@ -126,10 +126,10 @@ if(ENABLE_CUDA)
target_compile_definitions(core_receiver PRIVATE -DCUDA_GPU_ACCEL=1)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.65.99)
if(USE_BOOST_ASIO_IO_CONTEXT)
target_compile_definitions(core_receiver
PRIVATE
-DBOOST_GREATER_1_65
-DUSE_BOOST_ASIO_IO_CONTEXT
)
endif()

View File

@ -28,7 +28,7 @@
#include <sstream> // for stringstream
#include <utility> // for move
#if BOOST_GREATER_1_65
#if USE_BOOST_ASIO_IO_CONTEXT
using b_io_context = boost::asio::io_context;
#else
using b_io_context = boost::asio::io_service;

View File

@ -83,7 +83,7 @@ set(SYSTEM_PARAMETERS_HEADERS
list(SORT SYSTEM_PARAMETERS_HEADERS)
list(SORT SYSTEM_PARAMETERS_SOURCES)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(core_system_parameters STATIC)
target_sources(core_system_parameters
PRIVATE

View File

@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(gnss-sdr)
target_sources(gnss-sdr PRIVATE main.cc)
else()

View File

@ -449,7 +449,7 @@ include_directories(${LIST_INCLUDE_DIRS})
# Unit testing
################################################################################
if(ENABLE_UNIT_TESTING)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(run_tests)
target_sources(run_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/test_main.cc)
else()
@ -547,7 +547,7 @@ if(ENABLE_UNIT_TESTING)
${CUDA_INCLUDE_DIRS}
)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(run_tests
@ -561,10 +561,10 @@ if(ENABLE_UNIT_TESTING)
-DHAS_GENERIC_LAMBDA=0
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(run_tests
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()
endif()
@ -574,7 +574,7 @@ if(ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/tracking/gps_l1_ca_dll_pll_tracking_test_fpga.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(gps_l1_ca_dll_pll_tracking_test_fpga)
target_sources(gps_l1_ca_dll_pll_tracking_test_fpga PRIVATE ${GPS_L1_CA_DLL_PLL_TRACKING_TEST_FPGA_SOURCES})
else()
@ -632,7 +632,7 @@ function(add_system_test executable)
if(NOT EXISTS ${LOCAL_INSTALL_BASE_DIR}/install/${executable})
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${SYSTEM_TEST_SOURCES})
endif()
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(${executable})
target_sources(${executable} PRIVATE ${SYSTEM_TEST_SOURCES})
else()
@ -748,7 +748,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/gnss_flowgraph_test.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(flowgraph_test)
target_sources(flowgraph_test PRIVATE ${FLOWGRAPH_TEST_SOURCES})
else()
@ -803,7 +803,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/adapter/adapter_test.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/gnss_block_factory_test.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(gnss_block_test)
target_sources(gnss_block_test PRIVATE ${GNSS_BLOCK_TEST_SOURCES})
else()
@ -856,7 +856,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/sources/unpack_2bit_samples_test.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(gnuradio_block_test)
target_sources(gnuradio_block_test PRIVATE ${GNURADIO_BLOCK_TEST_SOURCES})
else()
@ -900,7 +900,7 @@ set(MATIO_TEST_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/arithmetic/matio_test.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(matio_test)
target_sources(matio_test PRIVATE ${MATIO_TEST_SOURCES})
else()
@ -938,7 +938,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/acquisition/gps_l1_ca_pcps_acquisition_test.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(acq_test)
target_sources(acq_test PRIVATE ${ACQ_TEST_SOURCES})
else()
@ -973,7 +973,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
add_test(acq_test acq_test)
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(acq_test
@ -987,10 +987,10 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
-DHAS_GENERIC_LAMBDA=0
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(acq_test
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()
set_property(TEST acq_test PROPERTY TIMEOUT 30)
@ -1014,7 +1014,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/tracking/bayesian_estimation_test.cc
${NONLINEAR_SOURCES}
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(trk_test)
target_sources(trk_test PRIVATE ${TRKTEST_SOURCES})
else()
@ -1049,7 +1049,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
signal_generator_gr_blocks
core_receiver
)
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(trk_test
@ -1063,10 +1063,10 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
-DHAS_GENERIC_LAMBDA=0
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(trk_test
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()
@ -1082,7 +1082,7 @@ if(NOT ENABLE_PACKAGING AND NOT ENABLE_FPGA)
${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/control-plane/control_thread_test.cc
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(control_thread_test)
target_sources(control_thread_test PRIVATE ${CONTROL_THREAD_TEST_SOURCES})
else()

View File

@ -16,7 +16,7 @@ set(SYSTEM_TESTING_LIB_SOURCES
file(GLOB SYSTEM_TESTING_LIB_HEADERS "*.h")
list(SORT SYSTEM_TESTING_LIB_HEADERS)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(system_testing_lib STATIC)
target_sources(system_testing_lib
PRIVATE

View File

@ -161,7 +161,7 @@ AcqPerfTest_msg_rx::AcqPerfTest_msg_rx(Concurrent_Queue<int>& queue) : gr::block
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&AcqPerfTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&AcqPerfTest_msg_rx::msg_handler_events, this, _1));

View File

@ -114,7 +114,7 @@ BeidouB1iPcpsAcquisitionTest_msg_rx::BeidouB1iPcpsAcquisitionTest_msg_rx() : gr:
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&BeidouB1iPcpsAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&BeidouB1iPcpsAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -114,7 +114,7 @@ BeidouB3iPcpsAcquisitionTest_msg_rx::BeidouB3iPcpsAcquisitionTest_msg_rx() : gr:
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&BeidouB3iPcpsAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&BeidouB3iPcpsAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -107,7 +107,7 @@ GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx::GalileoE1Pcps8msAmbiguo
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, _1));

View File

@ -105,7 +105,7 @@ GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx::GalileoE1PcpsAmbiguousAcqu
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, _1));

View File

@ -114,7 +114,7 @@ GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx::GalileoE1PcpsAmbiguousAcquisit
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx::msg_handler_events, this, _1));

View File

@ -126,7 +126,7 @@ GalileoE1PcpsAmbiguousAcquisitionTest_msg_rx::GalileoE1PcpsAmbiguousAcquisitionT
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1PcpsAmbiguousAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1PcpsAmbiguousAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -108,7 +108,7 @@ GalileoE1PcpsCccwsrAmbiguousAcquisitionTest_msg_rx::GalileoE1PcpsCccwsrAmbiguous
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1PcpsCccwsrAmbiguousAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1PcpsCccwsrAmbiguousAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -110,7 +110,7 @@ GalileoE1PcpsQuickSyncAmbiguousAcquisitionGSoC2014Test_msg_rx::GalileoE1PcpsQuic
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1PcpsQuickSyncAmbiguousAcquisitionGSoC2014Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1PcpsQuickSyncAmbiguousAcquisitionGSoC2014Test_msg_rx::msg_handler_events, this, _1));

View File

@ -105,7 +105,7 @@ GalileoE1PcpsTongAmbiguousAcquisitionGSoC2013Test_msg_rx::GalileoE1PcpsTongAmbig
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE1PcpsTongAmbiguousAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE1PcpsTongAmbiguousAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, _1));

View File

@ -101,7 +101,7 @@ GalileoE5aPcpsAcquisitionGSoC2014GensourceTest_msg_rx::GalileoE5aPcpsAcquisition
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GalileoE5aPcpsAcquisitionGSoC2014GensourceTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GalileoE5aPcpsAcquisitionGSoC2014GensourceTest_msg_rx::msg_handler_events, this, _1));

View File

@ -107,7 +107,7 @@ GlonassL1CaPcpsAcquisitionGSoC2017Test_msg_rx::GlonassL1CaPcpsAcquisitionGSoC201
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GlonassL1CaPcpsAcquisitionGSoC2017Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GlonassL1CaPcpsAcquisitionGSoC2017Test_msg_rx::msg_handler_events, this, _1));

View File

@ -100,7 +100,7 @@ GlonassL1CaPcpsAcquisitionTest_msg_rx::GlonassL1CaPcpsAcquisitionTest_msg_rx() :
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GlonassL1CaPcpsAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GlonassL1CaPcpsAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -105,7 +105,7 @@ GlonassL2CaPcpsAcquisitionTest_msg_rx::GlonassL2CaPcpsAcquisitionTest_msg_rx(con
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GlonassL2CaPcpsAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GlonassL2CaPcpsAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -108,7 +108,7 @@ GpsL1CaPcpsAcquisitionGSoC2013Test_msg_rx::GpsL1CaPcpsAcquisitionGSoC2013Test_ms
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CaPcpsAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CaPcpsAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, _1));

View File

@ -124,7 +124,7 @@ GpsL1CaPcpsAcquisitionTest_msg_rx::GpsL1CaPcpsAcquisitionTest_msg_rx() : gr::blo
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CaPcpsAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CaPcpsAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -103,7 +103,7 @@ GpsL1CaPcpsOpenClAcquisitionGSoC2013Test_msg_rx::GpsL1CaPcpsOpenClAcquisitionGSo
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CaPcpsOpenClAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CaPcpsOpenClAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, _1));

View File

@ -108,7 +108,7 @@ GpsL1CaPcpsQuickSyncAcquisitionGSoC2014Test_msg_rx::GpsL1CaPcpsQuickSyncAcquisit
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CaPcpsQuickSyncAcquisitionGSoC2014Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CaPcpsQuickSyncAcquisitionGSoC2014Test_msg_rx::msg_handler_events, this, _1));

View File

@ -105,7 +105,7 @@ GpsL1CaPcpsTongAcquisitionGSoC2013Test_msg_rx::GpsL1CaPcpsTongAcquisitionGSoC201
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CaPcpsTongAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CaPcpsTongAcquisitionGSoC2013Test_msg_rx::msg_handler_events, this, _1));

View File

@ -116,7 +116,7 @@ GpsL2MPcpsAcquisitionTest_msg_rx::GpsL2MPcpsAcquisitionTest_msg_rx() : gr::block
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL2MPcpsAcquisitionTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL2MPcpsAcquisitionTest_msg_rx::msg_handler_events, this, _1));

View File

@ -21,7 +21,7 @@ set(SIGNAL_PROCESSING_TESTING_LIB_SOURCES
file(GLOB SIGNAL_PROCESSING_TESTING_LIB_HEADERS "*.h")
list(SORT SIGNAL_PROCESSING_TESTING_LIB_HEADERS)
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(signal_processing_testing_lib STATIC)
target_sources(signal_processing_testing_lib
PRIVATE
@ -48,7 +48,7 @@ target_link_libraries(signal_processing_testing_lib
Glog::glog
)
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(signal_processing_testing_lib
@ -63,10 +63,10 @@ else()
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(signal_processing_testing_lib
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -58,7 +58,7 @@ Acquisition_msg_rx::Acquisition_msg_rx() : gr::block("Acquisition_msg_rx", gr::i
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&Acquisition_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&Acquisition_msg_rx::msg_handler_events, this, _1));

View File

@ -142,7 +142,7 @@ HybridObservablesTest_msg_rx::HybridObservablesTest_msg_rx() : gr::block("Hybrid
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&HybridObservablesTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&HybridObservablesTest_msg_rx::msg_handler_events, this, _1));
@ -208,7 +208,7 @@ HybridObservablesTest_tlm_msg_rx::HybridObservablesTest_tlm_msg_rx() : gr::block
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&HybridObservablesTest_tlm_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&HybridObservablesTest_tlm_msg_rx::msg_handler_events, this, _1));

View File

@ -138,7 +138,7 @@ HybridObservablesTest_msg_rx_Fpga::HybridObservablesTest_msg_rx_Fpga() : gr::blo
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&HybridObservablesTest_msg_rx_Fpga::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&HybridObservablesTest_msg_rx_Fpga::msg_handler_events, this, _1));

View File

@ -110,7 +110,7 @@ GpsL1CADllPllTelemetryDecoderTest_msg_rx::GpsL1CADllPllTelemetryDecoderTest_msg_
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CADllPllTelemetryDecoderTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CADllPllTelemetryDecoderTest_msg_rx::msg_handler_events, this, _1));

View File

@ -89,7 +89,7 @@ GlonassL1CaDllPllCAidTrackingTest_msg_rx::GlonassL1CaDllPllCAidTrackingTest_msg_
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GlonassL1CaDllPllCAidTrackingTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GlonassL1CaDllPllCAidTrackingTest_msg_rx::msg_handler_events, this, _1));

View File

@ -96,7 +96,7 @@ GlonassL1CaDllPllTrackingTest_msg_rx::GlonassL1CaDllPllTrackingTest_msg_rx() : g
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GlonassL1CaDllPllTrackingTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GlonassL1CaDllPllTrackingTest_msg_rx::msg_handler_events, this, _1));

View File

@ -126,7 +126,7 @@ GpsL1CADllPllTrackingTest_msg_rx::GpsL1CADllPllTrackingTest_msg_rx() : gr::block
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CADllPllTrackingTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CADllPllTrackingTest_msg_rx::msg_handler_events, this, _1));

View File

@ -213,7 +213,7 @@ GpsL1CADllPllTrackingTestFpga_msg_rx::GpsL1CADllPllTrackingTestFpga_msg_rx() : g
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CADllPllTrackingTestFpga_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CADllPllTrackingTestFpga_msg_rx::msg_handler_events, this, _1));

View File

@ -127,7 +127,7 @@ GpsL1CAKfTrackingTest_msg_rx::GpsL1CAKfTrackingTest_msg_rx() : gr::block("GpsL1C
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL1CAKfTrackingTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL1CAKfTrackingTest_msg_rx::msg_handler_events, this, _1));

View File

@ -103,7 +103,7 @@ GpsL2MDllPllTrackingTest_msg_rx::GpsL2MDllPllTrackingTest_msg_rx() : gr::block("
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&GpsL2MDllPllTrackingTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&GpsL2MDllPllTrackingTest_msg_rx::msg_handler_events, this, _1));

View File

@ -142,7 +142,7 @@ TrackingPullInTest_msg_rx::TrackingPullInTest_msg_rx() : gr::block("TrackingPull
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&TrackingPullInTest_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&TrackingPullInTest_msg_rx::msg_handler_events, this, _1));

View File

@ -140,7 +140,7 @@ TrackingPullInTest_msg_rx_Fpga::TrackingPullInTest_msg_rx_Fpga() : gr::block("Tr
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&TrackingPullInTest_msg_rx_Fpga::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&TrackingPullInTest_msg_rx_Fpga::msg_handler_events, this, _1));

View File

@ -8,7 +8,7 @@
#
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_library(front_end_cal_lib STATIC)
target_sources(front_end_cal_lib
PRIVATE
@ -48,7 +48,7 @@ if(ENABLE_CLANG_TIDY)
endif()
endif()
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(front-end-cal)
target_sources(front-end-cal PRIVATE main.cc)
else()
@ -85,7 +85,7 @@ target_compile_definitions(front-end-cal
PRIVATE -DGNSSSDR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}"
)
if(CMAKE_VERSION VERSION_GREATER 3.1 AND NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)))
if(USE_GENERIC_LAMBDAS)
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
target_compile_definitions(front-end-cal
@ -100,10 +100,10 @@ else()
)
endif()
if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
if(USE_BOOST_BIND_PLACEHOLDERS)
target_compile_definitions(front-end-cal
PRIVATE
-DBOOST_173_OR_GREATER=1
-DUSE_BOOST_BIND_PLACEHOLDERS=1
)
endif()

View File

@ -150,7 +150,7 @@ FrontEndCal_msg_rx::FrontEndCal_msg_rx() : gr::block("FrontEndCal_msg_rx", gr::i
#if HAS_GENERIC_LAMBDA
[this](auto&& PH1) { msg_handler_events(PH1); });
#else
#if BOOST_173_OR_GREATER
#if USE_BOOST_BIND_PLACEHOLDERS
boost::bind(&FrontEndCal_msg_rx::msg_handler_events, this, boost::placeholders::_1));
#else
boost::bind(&FrontEndCal_msg_rx::msg_handler_events, this, _1));

View File

@ -16,7 +16,7 @@ if("${ARMADILLO_VERSION_STRING}" VERSION_GREATER "9.800" OR (NOT ARMADILLO_FOUND
set(GPSTK_INCLUDE_DIR ${CMAKE_BINARY_DIR}/thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/include)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(obsdiff)
target_sources(obsdiff
PRIVATE

View File

@ -46,7 +46,7 @@ find_program(UNCOMPRESS_EXECUTABLE uncompress
if(Boost_FOUND)
message(STATUS "The rinex2assist utility tool will be built when doing '${CMAKE_MAKE_PROGRAM_PRETTY_NAME}'")
if(CMAKE_VERSION VERSION_GREATER 3.13)
if(USE_CMAKE_TARGET_SOURCES)
add_executable(rinex2assist)
target_sources(rinex2assist
PRIVATE