summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-05-22 08:14:03 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-05-22 08:38:52 (GMT)
commite16b06f4b913c222aeb09c7465e372ca5e46bf83 (patch)
treeac57547a998f7fa243848fd7e8adb25a2938085b /Modules/FindCUDA.cmake
parent7ee3ccbbeabfcd27ebfbab48b05539134e63cb8f (diff)
downloadCMake-e16b06f4b913c222aeb09c7465e372ca5e46bf83.zip
CMake-e16b06f4b913c222aeb09c7465e372ca5e46bf83.tar.gz
CMake-e16b06f4b913c222aeb09c7465e372ca5e46bf83.tar.bz2
FindCUDA: Make the deprecation notice more prominent
FindCUDA is still widely used, but has been superseded by the much more robust native language support. However the deprecation hasn't been noticed well enough and real-world experience shows there's still new code written to use it. Change this particular notice to a warning to get a hard to miss red box. We lose the semantic meaning, but we don't want to make all notices like this. If there are similar cases in the future requiring it would be worth adding a custom variant of the deprecated directive. Fixes #22203.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 16d7571..57482f1 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -2,7 +2,7 @@
FindCUDA
--------
-.. deprecated:: 3.10
+.. warning:: *Deprecated since version 3.10.*
It is no longer necessary to use this module or call ``find_package(CUDA)``
for compiling CUDA code. Instead, list ``CUDA`` among the languages named