mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
eb35d8884b
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
26 lines
699 B
CMake
26 lines
699 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(CMP0074-WARN)
|
|
run_cmake(CMP0074-OLD)
|
|
run_cmake(ComponentRequiredAndOptional)
|
|
run_cmake(MissingNormal)
|
|
run_cmake(MissingNormalRequired)
|
|
run_cmake(MissingNormalVersion)
|
|
run_cmake(MissingNormalWarnNoModuleOld)
|
|
run_cmake(MissingNormalWarnNoModuleNew)
|
|
run_cmake(MissingModule)
|
|
run_cmake(MissingModuleRequired)
|
|
run_cmake(MissingConfig)
|
|
run_cmake(MissingConfigOneName)
|
|
run_cmake(MissingConfigRequired)
|
|
run_cmake(MissingConfigVersion)
|
|
run_cmake(MixedModeOptions)
|
|
run_cmake(PackageRoot)
|
|
run_cmake(PackageRootNestedConfig)
|
|
run_cmake(PackageRootNestedModule)
|
|
run_cmake(PolicyPush)
|
|
run_cmake(PolicyPop)
|
|
run_cmake(SetFoundFALSE)
|
|
run_cmake(WrongVersion)
|
|
run_cmake(WrongVersionConfig)
|