1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-23 18:44:52 +00:00

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
96 changed files with 189 additions and 159 deletions

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));