Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: allow CMake to find Boost using package config
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 <[email protected]>
- Loading branch information