summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-04-16 13:37:45 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-04-22 14:46:03 (GMT)
commit306a1ba96073175ddc0c4de4d5f17b44d432da33 (patch)
treee1d867f9aa6cc29ca178fbc8bde13fc92510d991 /Source/cmIncludeCommand.cxx
parentad4487a96ae6e7e93e9b14d0fee67da01e27e12a (diff)
downloadCMake-306a1ba96073175ddc0c4de4d5f17b44d432da33.zip
CMake-306a1ba96073175ddc0c4de4d5f17b44d432da33.tar.gz
CMake-306a1ba96073175ddc0c4de4d5f17b44d432da33.tar.bz2
Modules/Documentation: remove
This is an old module from when VTK and other Kitware projects drove the addition of commands and modules into CMake itself. Modern VTK doesn't need this module and it can be ignored. This module is kept around so that the ancient VTK versions which use it are not broken by it. VTK itself stopped using the module in 2012 and the last usage by an example in VTK was removed in 2020. Fixes: #20591
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r--Source/cmIncludeCommand.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index 019483e..ae801bb 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/Source/cmIncludeCommand.cxx
@@ -19,6 +19,9 @@ bool cmIncludeCommand(std::vector<std::string> const& args,
cmExecutionStatus& status)
{
static std::map<std::string, cmPolicies::PolicyID> DeprecatedModules;
+ if (DeprecatedModules.empty()) {
+ DeprecatedModules["Documentation"] = cmPolicies::CMP0106;
+ }
if (args.empty() || args.size() > 4) {
status.SetError("called with wrong number of arguments. "