]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake/modules/FindBoost: add support for Boost 1.88.0 wip-kefu-pr-64250
authorKefu Chai <tchaikov@gmail.com>
Mon, 30 Jun 2025 02:58:31 +0000 (10:58 +0800)
committerKefu Chai <tchaikov@gmail.com>
Mon, 30 Jun 2025 05:15:39 +0000 (13:15 +0800)
commite298be566c44137cfc90a7cce929e0b900fbc85a
treec1f5f5acd2f6ec130cc2792f4e8b0c50330d9517
parent8b3abdd3150b401a9d53d8e14a051063958961e9
cmake/modules/FindBoost: add support for Boost 1.88.0

Add Boost 1.88.0 to the supported versions list and update component
dependencies to eliminate build warnings.

This resolves the following warning when building with Boost 1.88.0:

```
-- Found Boost: /usr/include (found suitable version "1.88.0", minimum required is "1.73.0")
CMake Warning at cmake/modules/FindBoost.cmake:1413 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  cmake/modules/FindBoost.cmake:1538 (_Boost_COMPONENT_DEPENDENCIES)
  cmake/modules/FindBoost.cmake:2157 (_Boost_MISSING_DEPENDENCIES)
  src/CMakeLists.txt:461 (_find_package)
  src/seastar/cmake/SeastarDependencies.cmake:136 (find_package)
  src/seastar/CMakeLists.txt:395 (seastar_find_dependencies)
```

Boost 1.88.0 was released on April 3, 2025, and is already available
in some distributions. Since many distributions don't yet ship Boost's
native CMake configuration files, our vendored FindBoost.cmake module
needs updating to handle this version.

The component dependencies were updated following the scanning procedure
documented in the _Boost_COMPONENT_DEPENDENCIES() function. The change
will be upstreamed to CMake shortly.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/FindBoost.cmake