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.
This commit is contained in:
Brad King
2023-03-09 07:39:36 -05:00
parent b6ffbffaf2
commit 2c146a7fc5
23 changed files with 137 additions and 2 deletions

View File

@@ -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;
}