FEniCS / FEniCS/dolfinx

Boost CMake modernisation

Open
#4,424 1 comment 0 reactions 1 assignee Claimed by @jhale View on GitHub
build enhancement packaging
Dominant language
C++
Stars
1.2k
Forks
261
Avg merge
1d 15h
Merged PRs (30d)
65

Description

Boost 1.92.0 has proper support for finding Boost subcomponents, including subcomponents that are just headers, in both b2 (standard) and CMake built versions. This would allow us to precisely specify what parts of Boost we use.

https://www.boost.org/releases/latest/

> The CMake configuration file installed by b2 install has been updated to support requesting header-only libraries as find_package components.
>
> That is, something like find_package(Boost REQUIRED COMPONENTS mp11) works now (and defines the target Boost::mp11), whereas previously it did not (only compiled libraries were considered components).
> This matches the behavior of the CMake configuration files installed by building Boost with CMake, making it possible to consume Boost in the same way regardless of how it was built and installed.
> As part of this regularization, the little used feature of requesting COMPONENTS ALL has been removed. It’s not supported by the CMake Boost build, and was never supported by FindBoost.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.