1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 05:26:58 +08:00

FindCUDA: Improve deprecation guidance wording

Simplified the text regarding adding sources to be more general as there's also
target_sources().

Improved the wording for FindCUDAToolkit to be more explicit of its usecase and
avoid using "superseded" since the common usecase of FindCUDA was superseded by
the language support.

Wording suggestions incopropated from discussion on #22203.
This commit is contained in:
Raul Tambre
2021-05-22 11:30:31 +03:00
parent e16b06f4b9
commit 15fda9384a

View File

@@ -8,13 +8,13 @@ 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 for compiling CUDA code. Instead, list ``CUDA`` among the languages named
in the top-level call to the :command:`project` command, or call the in the top-level call to the :command:`project` command, or call the
:command:`enable_language` command with ``CUDA``. :command:`enable_language` command with ``CUDA``.
Then one can add CUDA (``.cu``) sources to programs directly Then one can add CUDA (``.cu``) sources directly to targets similar to other
in calls to :command:`add_library` and :command:`add_executable`. languages.
.. versionadded:: 3.17 .. versionadded:: 3.17
To find and use the CUDA toolkit libraries the :module:`FindCUDAToolkit` To find and use the CUDA toolkit libraries manually, use the
module has superseded this module. It works whether or not the ``CUDA`` :module:`FindCUDAToolkit` module instead. It works regardless of the
language is enabled. ``CUDA`` language being enabled.
Documentation of Deprecated Usage Documentation of Deprecated Usage
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^