mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-14 02:59:53 -06:00
Every policy's documentation has a paragraph on what version of CMake introduced it, how to set the policy, and whether CMake warns if the policy is not set. The wording of this paragraph has diverged across policies over time. Factor the paragraph out into a standard advice document included by every policy.
26 lines
986 B
ReStructuredText
26 lines
986 B
ReStructuredText
CMP0093
|
|
-------
|
|
|
|
.. versionadded:: 3.15
|
|
|
|
:module:`FindBoost` reports ``Boost_VERSION`` in ``x.y.z`` format.
|
|
|
|
In CMake 3.14 and below the module would report the Boost version
|
|
number as specified in the preprocessor definition ``BOOST_VERSION`` in
|
|
the ``boost/version.hpp`` file. In CMake 3.15 and later it is preferred
|
|
that the reported version number matches the ``x.y.z`` format reported
|
|
by the CMake package shipped with Boost ``1.70.0`` and later. The macro
|
|
value is still reported in the ``Boost_VERSION_MACRO`` variable.
|
|
|
|
The ``OLD`` behavior for this policy is for :module:`FindBoost` to report
|
|
``Boost_VERSION`` as specified in the preprocessor definition
|
|
``BOOST_VERSION`` in ``boost/version.hpp``. The ``NEW`` behavior for this
|
|
policy is for :module:`FindBoost` to report ``Boost_VERSION`` in
|
|
``x.y.z`` format.
|
|
|
|
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.15
|
|
.. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
|
|
.. include:: STANDARD_ADVICE.txt
|
|
|
|
.. include:: DEPRECATED.txt
|