summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-10 16:02:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-03-10 16:02:07 (GMT)
commit9cf38e7b14daf96d6f2bda4b6a910b4de17d5f3d (patch)
tree33e7201bcb7f577cd0c265a9610877a7edb9e3ce /Source
parentecf7348cefca9b1f42c5e198dc4d3e148132fdc8 (diff)
parent2c146a7fc5499669ea0aa8bf37fd4ef5c1c517e4 (diff)
downloadCMake-9cf38e7b14daf96d6f2bda4b6a910b4de17d5f3d.zip
CMake-9cf38e7b14daf96d6f2bda4b6a910b4de17d5f3d.tar.gz
CMake-9cf38e7b14daf96d6f2bda4b6a910b4de17d5f3d.tar.bz2
Merge topic 'FindCUDA-remove'
2c146a7fc5 FindCUDA: Add policy to remove this module Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8306
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindPackageCommand.cxx1
-rw-r--r--Source/cmIncludeCommand.cxx1
-rw-r--r--Source/cmPolicies.h4
3 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 8acfe83..4024dff 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -502,6 +502,7 @@ cmFindPackageCommand::cmFindPackageCommand(cmExecutionStatus& status)
this->DebugMode = false;
this->AppendSearchPathGroups();
+ this->DeprecatedFindModules["CUDA"] = cmPolicies::CMP0146;
this->DeprecatedFindModules["Dart"] = cmPolicies::CMP0145;
this->DeprecatedFindModules["Qt"] = cmPolicies::CMP0084;
}
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index 3564cf7..56883fb 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/Source/cmIncludeCommand.cxx
@@ -22,6 +22,7 @@ bool cmIncludeCommand(std::vector<std::string> const& args,
if (DeprecatedModules.empty()) {
DeprecatedModules["Dart"] = cmPolicies::CMP0145;
DeprecatedModules["Documentation"] = cmPolicies::CMP0106;
+ DeprecatedModules["FindCUDA"] = cmPolicies::CMP0146;
DeprecatedModules["FindDart"] = cmPolicies::CMP0145;
DeprecatedModules["WriteCompilerDetectionHeader"] = cmPolicies::CMP0120;
}
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 830e14b..06ac21e 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -439,7 +439,9 @@ class cmMakefile;
"find_package uses upper-case <PACKAGENAME>_ROOT variables.", 3, 27, \
0, cmPolicies::WARN) \
SELECT(POLICY, CMP0145, "The Dart and FindDart modules are removed.", 3, \
- 27, 0, cmPolicies::WARN)
+ 27, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0146, "The FindCUDA module is removed.", 3, 27, 0, \
+ cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \