summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-04 14:54:12 (GMT)
committerCraig Scott <craig.scott@crascit.com>2020-12-05 10:57:08 (GMT)
commitda7ad7997e383eda8532d91269130524158a0a86 (patch)
tree2579e0c76e5201f5904a8fd5a47ec75af96af98e /Source
parent541f1410e06bc8c28876c6eb6dff594f6b046fc2 (diff)
downloadCMake-da7ad7997e383eda8532d91269130524158a0a86.zip
CMake-da7ad7997e383eda8532d91269130524158a0a86.tar.gz
CMake-da7ad7997e383eda8532d91269130524158a0a86.tar.bz2
WriteCompilerDetectionHeader: Add policy to remove module
See justification in the policy documentation. Closes: #17842
Diffstat (limited to 'Source')
-rw-r--r--Source/cmIncludeCommand.cxx1
-rw-r--r--Source/cmPolicies.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index 5e3aec5..ce1f030 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/Source/cmIncludeCommand.cxx
@@ -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) {
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 0d04f7a..2194b0f 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -356,7 +356,10 @@ class cmMakefile;
SELECT(POLICY, CMP0119, \
"LANGUAGE source file property explicitly compiles as specified " \
"language.", \
- 3, 20, 0, cmPolicies::WARN)
+ 3, 20, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0120, \
+ "The WriteCompilerDetectionHeader module is removed.", 3, 20, 0, \
+ cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \