• Brad King's avatar
    find_package: Use PackageName_ROOT variables as search prefixes · eb35d888
    Brad King authored
    This feature was originally added by commit v3.9.0-rc1~71^2~2 (find_*:
    Add a new PackageRoot search path group, 2017-05-03) and documented by
    commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search path
    group, 2017-05-03).  However, we had to disable the feature and remove
    the documentation in commit v3.9.1~2^2 (find_*: Disable the PACKAGE_ROOT
    search path group for CMake 3.9, 2017-08-08) due to breaking projects
    that used `PackageName_ROOT` variables themselves.
    
    Add policy `CMP0074` to restore the `PackageName_ROOT` variable behavior
    in a compatible way.  Also revise the stack of root paths to store the
    paths themselves rather than the package names.  This way the policy can
    be considered at the `find_package` call site instead of individual
    `find_` calls inside a find module.
    
    Co-Author: Chuck Atkins <chuck.atkins@kitware.com>
    Issue: #17144
    eb35d888
Name
Last commit
Last update
..
PackageRoot Loading commit data...
PolicyPop Loading commit data...
PolicyPush Loading commit data...
VersionedA-1 Loading commit data...
VersionedA-2 Loading commit data...
CMP0074-OLD-stderr.txt Loading commit data...
CMP0074-OLD.cmake Loading commit data...
CMP0074-WARN-stderr.txt Loading commit data...
CMP0074-WARN.cmake Loading commit data...
CMP0074-common.cmake Loading commit data...
CMakeLists.txt Loading commit data...
ComponentRequiredAndOptional-result.txt Loading commit data...
ComponentRequiredAndOptional-stderr.txt Loading commit data...
ComponentRequiredAndOptional.cmake Loading commit data...
MissingConfig-stderr.txt Loading commit data...
MissingConfig-stdout.txt Loading commit data...
MissingConfig.cmake Loading commit data...
MissingConfigNormal-stdout.txt Loading commit data...
MissingConfigOneName-stdout.txt Loading commit data...
MissingConfigOneName.cmake Loading commit data...
MissingConfigRequired-result.txt Loading commit data...
MissingConfigRequired-stderr.txt Loading commit data...
MissingConfigRequired.cmake Loading commit data...
MissingConfigVersion-stdout.txt Loading commit data...
MissingConfigVersion.cmake Loading commit data...
MissingModule-stderr.txt Loading commit data...
MissingModule.cmake Loading commit data...
MissingModuleRequired-result.txt Loading commit data...
MissingModuleRequired-stderr.txt Loading commit data...
MissingModuleRequired.cmake Loading commit data...
MissingNormal-stderr.txt Loading commit data...
MissingNormal.cmake Loading commit data...
MissingNormalRequired-result.txt Loading commit data...
MissingNormalRequired-stderr.txt Loading commit data...
MissingNormalRequired.cmake Loading commit data...
MissingNormalVersion-stderr.txt Loading commit data...
MissingNormalVersion.cmake Loading commit data...
MissingNormalWarnNoModuleNew-stderr.txt Loading commit data...
MissingNormalWarnNoModuleNew.cmake Loading commit data...
MissingNormalWarnNoModuleOld-stderr.txt Loading commit data...
MissingNormalWarnNoModuleOld.cmake Loading commit data...
MixedModeOptions-result.txt Loading commit data...
MixedModeOptions-stderr.txt Loading commit data...
MixedModeOptions.cmake Loading commit data...
PackageRoot-stderr.txt Loading commit data...
PackageRoot.cmake Loading commit data...
PackageRootNestedConfig-stderr.txt Loading commit data...
PackageRootNestedConfig.cmake Loading commit data...
PackageRootNestedModule-stderr.txt Loading commit data...
PackageRootNestedModule.cmake Loading commit data...
PolicyPop-result.txt Loading commit data...
PolicyPop-stderr.txt Loading commit data...
PolicyPop.cmake Loading commit data...
PolicyPush-result.txt Loading commit data...
PolicyPush-stderr.txt Loading commit data...
PolicyPush.cmake Loading commit data...
RunCMakeTest.cmake Loading commit data...
SetFoundFALSE-stderr.txt Loading commit data...
SetFoundFALSE.cmake Loading commit data...
SetFoundFALSEConfig.cmake Loading commit data...
WrongVersion-stderr.txt Loading commit data...
WrongVersion.cmake Loading commit data...
WrongVersionConfig-stderr.txt Loading commit data...
WrongVersionConfig.cmake Loading commit data...