• Brad King's avatar
    find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9 · 578d95f8
    Brad King authored
    Disable the feature added by commit v3.9.0-rc1~71^2~2 (find_*: Add a new
    PackageRoot search path group, 2017-05-03) and remove documentation
    added by commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search
    path group, 2017-05-03).  Unfortunately the name `<pkg>_ROOT` may
    already be set by projects for their own incompatible purposes.  Disable
    the behavior change for now to fix the regression for CMake 3.9.  We can
    restore it later with a policy.
    In order to keep the implementation and tests working, add an
    undocumented variable we can use in the tests to enable the behavior
    before the policy is introduced.
    Fixes: #17144
3.9.rst 14.1 KB