Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document BoostConfig.cmake? #77

Open
SamB opened this issue Nov 25, 2024 · 0 comments
Open

Document BoostConfig.cmake? #77

SamB opened this issue Nov 25, 2024 · 0 comments

Comments

@SamB
Copy link

SamB commented Nov 25, 2024

The documentation for your version of BoostConfig.cmake seems a little sparse:

# This CMake configuration file provides support for find_package(Boost).

CMake 3.30 deprecated FindBoost, saying:

Changed in version 3.30: This module is available only if policy CMP0167 is not set to NEW. Port projects to upstream Boost's BoostConfig.cmake package configuration file, for which find_package(Boost) now searches.

Sounds reasonable, except they didn't mention that there are two of those, https://github.com/boostorg/boost_install/blob/develop/BoostConfig.cmake and https://github.com/boostorg/cmake/blob/develop/config/BoostConfig.cmake, neither of which appears to be fully documented in its own right, seemingly depending on the FindBoost documentation to describe how things are meant to work.

Fortunately, the CMake folks don't seem the type to actually remove deprecated stuff in a hurry, especially not the documentation, but its not exactly clear what the user is actually supposed to before flipping this policy especially if they want to make sure their software works with both the "boost_install" and "cmake" variants.

P.S. I sure wish I could open this against both repositories. Darn you, github!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant