1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-04 17:23:20 +00:00

Fix for Boost 1.89

The system library becomes header-only, so target Boost::system is not available anymore
This commit is contained in:
Carles Fernandez
2025-08-19 11:34:11 +02:00
parent caf6f1ba40
commit 2f08c4e82b
2 changed files with 7 additions and 1 deletions

View File

@@ -1010,7 +1010,7 @@ if(Boost_VERSION_STRING VERSION_LESS 1.70.0)
) )
endif() endif()
# Fox for CentOS 7 with cmake3 and gcc8 # Fix for CentOS 7 with cmake3 and gcc8
if(Boost_VERSION_STRING VERSION_LESS "1.60") if(Boost_VERSION_STRING VERSION_LESS "1.60")
set(USE_GENERIC_LAMBDAS OFF) set(USE_GENERIC_LAMBDAS OFF)
endif() endif()
@@ -1020,6 +1020,11 @@ if(Boost_VERSION_STRING VERSION_GREATER 1.72.99)
set(USE_BOOST_BIND_PLACEHOLDERS ON) set(USE_BOOST_BIND_PLACEHOLDERS ON)
endif() endif()
# Fix for Boost >= 1.89 - Boost::system becomes header-only
if(Boost_VERSION_STRING VERSION_GREATER 1.88.99)
add_library(Boost::system ALIAS Boost::headers)
endif()
################################################################################ ################################################################################

View File

@@ -41,6 +41,7 @@ All notable changes to GNSS-SDR will be documented in this file.
- Updated `gsl-lite` to v1.0.1. See the - Updated `gsl-lite` to v1.0.1. See the
[gsl-lite release](https://github.com/gsl-lite/gsl-lite/releases/tag/v1.0.1). [gsl-lite release](https://github.com/gsl-lite/gsl-lite/releases/tag/v1.0.1).
- Updated local `cpu_features` library to v0.10.1. - Updated local `cpu_features` library to v0.10.1.
- Allow linking against Boost 1.89.0.
### Improvements in Usability: ### Improvements in Usability: