CMP0167.rst 1.1 KB

12345678910111213141516171819202122232425262728
  1. CMP0167
  2. -------
  3. .. versionadded:: 3.30
  4. The :module:`FindBoost` module is removed.
  5. CMake 3.29 and below provide a ``FindBoost`` module, but it needs constant
  6. updates to keep up with upstream Boost releases. Upstream Boost 1.70
  7. and above provide a ``BoostConfig.cmake`` package configuration file.
  8. ``find_package(Boost CONFIG)`` finds the upstream package directly,
  9. without the find module.
  10. CMake 3.30 and above prefer to not provide the ``FindBoost`` module
  11. so that ``find_package(Boost)`` calls, without the ``CONFIG`` or
  12. ``NO_MODULE`` options, find the upstream ``BoostConfig.cmake`` directly.
  13. This policy provides compatibility for projects that have not been ported
  14. to use the upstream Boost package.
  15. The ``OLD`` behavior of this policy is for ``find_package(Boost)`` to
  16. load CMake's :module:`FindBoost` module. The ``NEW`` behavior is for
  17. ``find_package(Boost)`` to search for the upstream ``BoostConfig.cmake``.
  18. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.30
  19. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  20. .. include:: include/STANDARD_ADVICE.rst
  21. .. include:: include/DEPRECATED.rst