Skip to content

Boost Warning: CMake 3.30+ #55

@ax3l

Description

@ax3l

I see this warning with CMake 3.30.2 regarding the internally shipped FindBoost.cmake module:

CMake Warning (dev) at CMakeLists.txt:45 (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.

This warning is for project developers.  Use -Wno-dev to suppress it.

https://cmake.org/cmake/help/latest/policy/CMP0167.html

I think we can modernize this by checking which boost versions are new enough to have proper CMake config files shipped and by then using find_package(Boost CONFIG) on our end.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions