diff options
author | Brad King <brad.king@kitware.com> | 2021-05-25 14:05:39 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-05-25 14:05:45 (GMT) |
commit | 6b5be76b070009252201125924366fb8b4ec5b5e (patch) | |
tree | 9666a244d493e3f451075e485e812b55bf01a6a7 /Modules | |
parent | 52b0795d1ad588ca01b0f62ca90037abfea73aa3 (diff) | |
parent | 15fda9384a99035b2e77cce608a6b6e296a952c9 (diff) | |
download | CMake-6b5be76b070009252201125924366fb8b4ec5b5e.zip CMake-6b5be76b070009252201125924366fb8b4ec5b5e.tar.gz CMake-6b5be76b070009252201125924366fb8b4ec5b5e.tar.bz2 |
Merge topic 'find_cuda_deprecation'
15fda9384a FindCUDA: Improve deprecation guidance wording
e16b06f4b9 FindCUDA: Make the deprecation notice more prominent
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6153
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 16d7571..dd795f4 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -2,19 +2,19 @@ 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 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`. +Then one can add CUDA (``.cu``) sources directly to targets similar to other +languages. .. versionadded:: 3.17 - To find and use the CUDA toolkit libraries the :module:`FindCUDAToolkit` - module has superseded this module. It works whether or not the ``CUDA`` - language is enabled. + To find and use the CUDA toolkit libraries manually, use the + :module:`FindCUDAToolkit` module instead. It works regardless of the + ``CUDA`` language being enabled. Documentation of Deprecated Usage ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |