mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -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.
22 lines
675 B
ReStructuredText
22 lines
675 B
ReStructuredText
CMP0152
|
|
-------
|
|
|
|
.. versionadded:: 3.28
|
|
|
|
:command:`file(REAL_PATH)` resolves symlinks before collapsing ../ components.
|
|
|
|
In CMake 3.27 and below, :command:`file(REAL_PATH)` collapsed any ``../``
|
|
components in a path before resolving symlinks. This produced incorrect
|
|
results when the ``../`` collapsed away a symlink.
|
|
|
|
The ``OLD`` behavior for this policy is to collapse ``../`` components before
|
|
resolving symlinks.
|
|
The ``NEW`` behavior for this policy is to resolve all symlinks before
|
|
collapsing ``../`` components.
|
|
|
|
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.28
|
|
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
|
|
.. include:: STANDARD_ADVICE.txt
|
|
|
|
.. include:: DEPRECATED.txt
|