You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
joligario
changed the title
[CMake] FindBoost module removed in CMake 3.30+
[CMake] FindBoost module deprecated in CMake 3.30+
Jul 20, 2024
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 aBoostConfig.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 thatfind_package(Boost)
calls, without theCONFIG
orNO_MODULE
options, find the upstreamBoostConfig.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 forfind_package(Boost)
to load CMake'sFindBoost
module. TheNEW
behavior is forfind_package(Boost)
to search for the upstreamBoostConfig.cmake
.This policy was introduced in CMake version 3.30. It may be set by
cmake_policy()
orcmake_minimum_required()
. If it is not set, CMake warns, and usesOLD
behavior... note::
The
OLD
behavior of a policy isdeprecated by definition
and may be removed in a future version of CMake.The text was updated successfully, but these errors were encountered: