summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDAToolkit.cmake
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-07-07 17:22:16 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2021-07-07 17:42:08 (GMT)
commit266fc8ada550a29d46fd35c2c147de2436137978 (patch)
tree9bdc08362b0d657a6c1fa0f8315226d7430ecdde /Modules/FindCUDAToolkit.cmake
parente610e99ad34a545ac67f1977e78ea59a52fdcf79 (diff)
downloadCMake-266fc8ada550a29d46fd35c2c147de2436137978.zip
CMake-266fc8ada550a29d46fd35c2c147de2436137978.tar.gz
CMake-266fc8ada550a29d46fd35c2c147de2436137978.tar.bz2
FindCUDAToolkit: Properly document the version support
Diffstat (limited to 'Modules/FindCUDAToolkit.cmake')
-rw-r--r--Modules/FindCUDAToolkit.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index 8801cb1..7c3e9a9 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.