summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-10 14:19:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-10 14:22:53 (GMT)
commitae813b6bcc64fc5096fb4a7d87920b47cfbe488f (patch)
tree87ee776836bff56776e898ab438af65e5af9843f
parentdfbe55b2dfe1d53f6d8c43c521dbe77852473c39 (diff)
downloadCMake-ae813b6bcc64fc5096fb4a7d87920b47cfbe488f.zip
CMake-ae813b6bcc64fc5096fb4a7d87920b47cfbe488f.tar.gz
CMake-ae813b6bcc64fc5096fb4a7d87920b47cfbe488f.tar.bz2
FindCUDA: Document that module has been superseded
Add a note at the top of the module documentation to point readers at the first-class support for the CUDA language.
-rw-r--r--Modules/FindCUDA.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 5dc55d4..98fb58b 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -2,6 +2,20 @@
# FindCUDA
# --------
#
+# .. note::
+#
+# The FindCUDA module has been superseded by first-class support
+# for the CUDA language in CMake. It is no longer necessary to
+# use this module or call ``find_package(CUDA)``. This module
+# now exists only for compatibility with projects that have not
+# been ported.
+#
+# Instead, list ``CUDA`` among the languages named in the top-level
+# call to the :command:`project` command, or call the
+# :command:`enable_language` command with ``CUDA``.
+# Then one can add CUDA (``.cu``) sources to programs directly
+# in calls to :command:`add_library` and :command:`add_executable`.
+#
# Tools for building CUDA C files: libraries and build dependencies.
#
# This script locates the NVIDIA CUDA C tools. It should work on linux,