mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-09-28 03:41:50 +00:00
Unify criteria in target definitions, more informative names
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user