WriteCompilerDetectionHeader: Add policy to remove module

See justification in the policy documentation.

Closes: #17842
This commit is contained in:
Brad King
2020-12-04 09:54:12 -05:00
committed by Craig Scott
parent 541f1410e0
commit da7ad7997e
21 changed files with 137 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ bool cmIncludeCommand(std::vector<std::string> const& args,
static std::map<std::string, cmPolicies::PolicyID> DeprecatedModules;
if (DeprecatedModules.empty()) {
DeprecatedModules["Documentation"] = cmPolicies::CMP0106;
DeprecatedModules["WriteCompilerDetectionHeader"] = cmPolicies::CMP0120;
}
if (args.empty() || args.size() > 4) {