CMP0093.rst 1.1 KB

1234567891011121314151617181920212223242526
  1. CMP0093
  2. -------
  3. .. versionadded:: 3.15
  4. :module:`FindBoost` reports ``Boost_VERSION`` in ``x.y.z`` format.
  5. In CMake 3.14 and below the module would report the Boost version
  6. number as specified in the preprocessor definition ``BOOST_VERSION`` in
  7. the ``boost/version.hpp`` file. In CMake 3.15 and later it is preferred
  8. that the reported version number matches the ``x.y.z`` format reported
  9. by the CMake package shipped with Boost ``1.70.0`` and later. The macro
  10. value is still reported in the ``Boost_VERSION_MACRO`` variable.
  11. The ``OLD`` behavior for this policy is for :module:`FindBoost` to report
  12. ``Boost_VERSION`` as specified in the preprocessor definition
  13. ``BOOST_VERSION`` in ``boost/version.hpp``. The ``NEW`` behavior for this
  14. policy is for :module:`FindBoost` to report ``Boost_VERSION`` in
  15. ``x.y.z`` format.
  16. This policy was introduced in CMake version 3.15. Use the
  17. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  18. Unlike many policies, CMake version |release| does *not* warn
  19. when this policy is not set and simply uses the ``OLD`` behavior.
  20. .. include:: DEPRECATED.txt