
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.
24 lines
776 B
ReStructuredText
24 lines
776 B
ReStructuredText
CMP0103
|
|
-------
|
|
|
|
.. versionadded:: 3.18
|
|
|
|
Multiple calls to :command:`export` command with same ``FILE`` without
|
|
``APPEND`` is no longer allowed.
|
|
|
|
In CMake 3.17 and below, multiple calls to :command:`export` command with the
|
|
same ``FILE`` without ``APPEND`` are accepted silently but only the last
|
|
occurrence is taken into account during the generation.
|
|
|
|
The ``OLD`` behavior for this policy is to ignore the multiple occurrences of
|
|
:command:`export` command except the last one.
|
|
|
|
The ``NEW`` behavior of this policy is to raise an error on second call to
|
|
:command:`export` command with same ``FILE`` without ``APPEND``.
|
|
|
|
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.18
|
|
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
|
|
.. include:: STANDARD_ADVICE.txt
|
|
|
|
.. include:: DEPRECATED.txt
|