New in version 3.27.
find_package() uses upper-case
In CMake 3.27 and above the
find_package(<PackageName>) command now
searches prefixes specified by the upper-case
CMake variable and the
<PACKAGENAME>_ROOT environment variable
in addition to the case-preserved
<PackageName>_ROOT variables used since policy
This policy provides compatibility with projects that have not been
updated to avoid using
<PACKAGENAME>_ROOT variables for other purposes.
OLD behavior for this policy is to ignore
variables if the original
<PackageName> has lower-case characters.
NEW behavior for this policy is to use
This policy was introduced in CMake version 3.27. CMake version
3.28.20231201-g3b8aaa1 warns when the policy is not set and uses
cmake_policy() command to set it to
OLD behavior of a policy is
deprecated by definition
and may be removed in a future version of CMake.