summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/include/CMP0146-OLD.cmake
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 /Tests/RunCMake/include/CMP0146-OLD.cmake
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 'Tests/RunCMake/include/CMP0146-OLD.cmake')
-rw-r--r--Tests/RunCMake/include/CMP0146-OLD.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/include/CMP0146-OLD.cmake b/Tests/RunCMake/include/CMP0146-OLD.cmake
new file mode 100644
index 0000000..654cdf7
--- /dev/null
+++ b/Tests/RunCMake/include/CMP0146-OLD.cmake
@@ -0,0 +1,7 @@
+cmake_policy(SET CMP0146 OLD)
+set(_FindCUDA_testing 1)
+include(FindCUDA)
+
+if(NOT _FindCUDA_included)
+ message(FATAL_ERROR "FindCUDA.cmake not included")
+endif()