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

[CMake] FindBoost module deprecated in CMake 3.30+ #4420

Open
joligario opened this issue Jul 20, 2024 · 0 comments
Open

[CMake] FindBoost module deprecated in CMake 3.30+ #4420

joligario opened this issue Jul 20, 2024 · 0 comments

Comments

@joligario
Copy link
Contributor

CMP0167

.. versionadded:: 3.30

The FindBoost module is removed.

CMake 3.29 and below provide a FindBoost module, but it needs constant updates to keep up with upstream Boost releases. Upstream Boost 1.70 and above provide a BoostConfig.cmake package configuration file. find_package(Boost CONFIG) finds the upstream package directly, without the find module.

CMake 3.30 and above prefer to not provide the FindBoost module so that find_package(Boost) calls, without the CONFIG or NO_MODULE options, find the upstream BoostConfig.cmake directly. This policy provides compatibility for projects that have not been ported to use the upstream Boost package.

The OLD behavior of this policy is for find_package(Boost) to load CMake's FindBoost module. The NEW behavior is for find_package(Boost) to search for the upstream BoostConfig.cmake.

This policy was introduced in CMake version 3.30. It may be set by cmake_policy() or cmake_minimum_required(). If it is not set, CMake warns, and uses OLD behavior.

.. note::
The OLD behavior of a policy is deprecated by definition and may be removed in a future version of CMake.

@joligario joligario changed the title [CMake] FindBoost module removed in CMake 3.30+ [CMake] FindBoost module deprecated in CMake 3.30+ Jul 20, 2024
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