CMP0152ΒΆ
Added in version 3.28.
file(REAL_PATH) resolves symlinks before collapsing ../ components.
In CMake 3.27 and below, 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.
This policy was introduced in CMake version 3.28.
It may be set by cmake_policy() or cmake_minimum_required().
If it is not set, CMake warns, and uses OLD behavior.
Note
The OLD behavior of a policy is
deprecated by definition
and may be removed in a future version of CMake.