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

build: allow CMake to find Boost using package config #2537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tchaikov
Copy link
Contributor

Remove the "MODULE" parameter from find_package(Boost) call to allow using Boost's provided BoostConfig.cmake instead of CMake's FindBoost module. This aligns with CMake 3.30's policy CMP0167 which deprecates FindBoost.cmake.

Background:

  • We previously dropped our vendored FindBoost.cmake in bf684ac
  • CMake is deprecating its FindBoost module as Boost now provides its own package config files
  • Using Boost's config files is the recommended approach going forward

This change:

  • Silences CMP0167 policy warnings like CMake Warning (dev) at CMakeLists.txt:133 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
  • Removes outdated comments about bundled FindBoost.cmake, which was removed in bf684ac.
  • Enables using Boost's native package configuration

Refs bf684ac

Remove the "MODULE" parameter from `find_package(Boost)` call to allow using
Boost's provided BoostConfig.cmake instead of CMake's FindBoost module. This
aligns with CMake 3.30's policy CMP0167 which deprecates FindBoost.cmake.

Background:
- We previously dropped our vendored FindBoost.cmake in bf684ac
- CMake is deprecating its FindBoost module as Boost now provides its own
  package config files
- Using Boost's config files is the recommended approach going forward

This change:
- Silences [CMP0167](https://cmake.org/cmake/help/latest/policy/CMP0167.html)
  policy warnings like
  ```
  CMake Warning (dev) at CMakeLists.txt:133 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
  ```
- Removes outdated comments about bundled FindBoost.cmake, which was
  removed in bf684ac.
- Enables using Boost's native package configuration

Refs bf684ac

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
@tchaikov
Copy link
Contributor Author

@scylladb/seastar-maint hello maintainers, could you help review this change?

2 similar comments
@tchaikov
Copy link
Contributor Author

@scylladb/seastar-maint hello maintainers, could you help review this change?

@tchaikov
Copy link
Contributor Author

@scylladb/seastar-maint hello maintainers, could you help review this change?

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

Successfully merging this pull request may close these issues.

1 participant