summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-08 11:53:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-07-08 11:53:52 (GMT)
commiteb692af623379085169229fe5c2c9d3fba3a020d (patch)
tree3a5cb5eb7175dc6b70abbb2744bf8ea1f9456afa /Modules
parent71e2829c5f50a103fbe97f6ce17cc948c9eb101c (diff)
parent266fc8ada550a29d46fd35c2c147de2436137978 (diff)
downloadCMake-eb692af623379085169229fe5c2c9d3fba3a020d.zip
CMake-eb692af623379085169229fe5c2c9d3fba3a020d.tar.gz
CMake-eb692af623379085169229fe5c2c9d3fba3a020d.tar.bz2
Merge topic 'FindCUDAToolkit-doc-version' into release-3.21
266fc8ada5 FindCUDAToolkit: Properly document the version support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6320
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDAToolkit.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index 4235904..89b8c99 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -75,12 +75,17 @@ The CUDA Toolkit search behavior uses the following order:
(2) ensure that the correct ``nvcc`` executable shows up in ``$PATH`` for
:command:`find_program` to find.
+Arguments
+^^^^^^^^^
+
+``[<version>]``
+ The ``[<version>]`` argument requests a version with which the package found
+ should be compatible. See :ref:`find_package version format <FIND_PACKAGE_VERSION_FORMAT>`
+ for more details.
+
Options
^^^^^^^
-``VERSION``
- If specified, describes the version of the CUDA Toolkit to search for.
-
``REQUIRED``
If specified, configuration will error if a suitable CUDA Toolkit is not
found.