CMP0093.rst 1.1 KB

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