diff options
author | Brad King <brad.king@kitware.com> | 2023-03-09 12:39:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-09 12:39:36 (GMT) |
commit | 2c146a7fc5499669ea0aa8bf37fd4ef5c1c517e4 (patch) | |
tree | 516117e03933617ceee62b364631130cb6ca8d03 /Source/cmPolicies.h | |
parent | b6ffbffaf26006a361c1330d0edce9a6314f58bb (diff) | |
download | CMake-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/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 4 |
1 files changed, 3 insertions, 1 deletions
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) \ |