Преглед изворни кода

Merge topic 'FindCUDAToolkit-doc-version' into release-3.21

266fc8ada5 FindCUDAToolkit: Properly document the version support

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6320
Brad King пре 4 година
родитељ
комит
eb692af623
1 измењених фајлова са 8 додато и 3 уклоњено
  1. 8 3
      Modules/FindCUDAToolkit.cmake

+ 8 - 3
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.