summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-30 14:13:07 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-30 16:05:09 (GMT)
commita4c5b91f80003d007cddbb0de95032d65ec98ace (patch)
tree591d68a94107253b48f6398a3188e1c89169e0c8 /Source/cmIncludeCommand.cxx
parent4901fdb201bc6264e976e105780a490d9c0eba19 (diff)
downloadCMake-a4c5b91f80003d007cddbb0de95032d65ec98ace.zip
CMake-a4c5b91f80003d007cddbb0de95032d65ec98ace.tar.gz
CMake-a4c5b91f80003d007cddbb0de95032d65ec98ace.tar.bz2
FindPython{Interp,Libs}: Add policy to remove these modules
The `FindPythonInterp` and `FindPythonLibs` modules have been deprecated since CMake 3.12. Add a policy to pretend they do not exist in order to encourage projects to port to `FindPython` or `FindPython{2,3}`.
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r--Source/cmIncludeCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index 56883fb..3695a9b 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/Source/cmIncludeCommand.cxx
@@ -24,6 +24,8 @@ bool cmIncludeCommand(std::vector<std::string> const& args,
DeprecatedModules["Documentation"] = cmPolicies::CMP0106;
DeprecatedModules["FindCUDA"] = cmPolicies::CMP0146;
DeprecatedModules["FindDart"] = cmPolicies::CMP0145;
+ DeprecatedModules["FindPythonInterp"] = cmPolicies::CMP0148;
+ DeprecatedModules["FindPythonLibs"] = cmPolicies::CMP0148;
DeprecatedModules["WriteCompilerDetectionHeader"] = cmPolicies::CMP0120;
}