summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-09 12:39:36 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-09 12:39:36 (GMT)
commit2c146a7fc5499669ea0aa8bf37fd4ef5c1c517e4 (patch)
tree516117e03933617ceee62b364631130cb6ca8d03 /Source/cmIncludeCommand.cxx
parentb6ffbffaf26006a361c1330d0edce9a6314f58bb (diff)
downloadCMake-2c146a7fc5499669ea0aa8bf37fd4ef5c1c517e4.zip
CMake-2c146a7fc5499669ea0aa8bf37fd4ef5c1c517e4.tar.gz
CMake-2c146a7fc5499669ea0aa8bf37fd4ef5c1c517e4.tar.bz2
FindCUDA: Add policy to remove this module
The `FindCUDA` module has been deprecated since CMake 3.10. Add a policy to pretend it doesn't exist in order to encourage projects to port away from it.
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r--Source/cmIncludeCommand.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}