mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Make use of std::lcm instead of Boost when possible
This commit is contained in:
parent
268dbbc61f
commit
182b87c022
@ -32,11 +32,18 @@ target_include_directories(pvt_adapters
|
|||||||
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
||||||
)
|
)
|
||||||
|
|
||||||
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
if((NOT (CMAKE_VERSION VERSION_LESS "3.1")) AND NOT (CMAKE_CXX_STANDARD VERSION_LESS 17))
|
||||||
|
target_compile_definitions(pvt_adapters
|
||||||
|
PRIVATE
|
||||||
|
-DUSE_STD_COMMON_FACTOR=1
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
||||||
target_compile_definitions(pvt_adapters
|
target_compile_definitions(pvt_adapters
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_CLANG_TIDY)
|
if(ENABLE_CLANG_TIDY)
|
||||||
|
@ -28,6 +28,10 @@
|
|||||||
#include "rtklib_rtkpos.h" // for rtkfree, rtkinit
|
#include "rtklib_rtkpos.h" // for rtkfree, rtkinit
|
||||||
#include <glog/logging.h> // for LOG
|
#include <glog/logging.h> // for LOG
|
||||||
#include <iostream> // for std::cout
|
#include <iostream> // for std::cout
|
||||||
|
#if USE_STD_COMMON_FACTOR
|
||||||
|
#include <numeric>
|
||||||
|
namespace bc = std;
|
||||||
|
#else
|
||||||
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
||||||
#include <boost/math/common_factor_rt.hpp>
|
#include <boost/math/common_factor_rt.hpp>
|
||||||
namespace bc = boost::math;
|
namespace bc = boost::math;
|
||||||
@ -35,6 +39,7 @@ namespace bc = boost::math;
|
|||||||
#include <boost/integer/common_factor_rt.hpp>
|
#include <boost/integer/common_factor_rt.hpp>
|
||||||
namespace bc = boost::integer;
|
namespace bc = boost::integer;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std::string_literals;
|
using namespace std::string_literals;
|
||||||
|
|
||||||
|
@ -74,11 +74,18 @@ if(ENABLE_CLANG_TIDY)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
if((NOT (CMAKE_VERSION VERSION_LESS "3.1")) AND NOT (CMAKE_CXX_STANDARD VERSION_LESS 17))
|
||||||
|
target_compile_definitions(pvt_gr_blocks
|
||||||
|
PRIVATE
|
||||||
|
-DUSE_STD_COMMON_FACTOR=1
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
||||||
target_compile_definitions(pvt_gr_blocks
|
target_compile_definitions(pvt_gr_blocks
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_BOOST_BIND_PLACEHOLDERS)
|
if(USE_BOOST_BIND_PLACEHOLDERS)
|
||||||
|
@ -86,6 +86,10 @@
|
|||||||
#include <boost/bind/bind.hpp>
|
#include <boost/bind/bind.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USE_STD_COMMON_FACTOR
|
||||||
|
#include <numeric>
|
||||||
|
namespace bc = std;
|
||||||
|
#else
|
||||||
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
||||||
#include <boost/math/common_factor_rt.hpp>
|
#include <boost/math/common_factor_rt.hpp>
|
||||||
namespace bc = boost::math;
|
namespace bc = boost::math;
|
||||||
@ -93,6 +97,7 @@ namespace bc = boost::math;
|
|||||||
#include <boost/integer/common_factor_rt.hpp>
|
#include <boost/integer/common_factor_rt.hpp>
|
||||||
namespace bc = boost::integer;
|
namespace bc = boost::integer;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if PMT_USES_BOOST_ANY
|
#if PMT_USES_BOOST_ANY
|
||||||
#include <boost/any.hpp>
|
#include <boost/any.hpp>
|
||||||
|
Loading…
Reference in New Issue
Block a user