Pārlūkot izejas kodu

CMakeFindPackageMode: Link to cmake --find-package documentation

權少 2 gadi atpakaļ
vecāks
revīzija
c5388bd320
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 1 0
      Help/manual/cmake.1.rst
  2. 3 4
      Modules/CMakeFindPackageMode.cmake

+ 1 - 0
Help/manual/cmake.1.rst

@@ -1311,6 +1311,7 @@ The following ``cmake -E`` commands are available only on Windows:
 
   Write Windows registry value.
 
+.. _`Find-Package Tool Mode`:
 
 Run the Find-Package Tool
 =========================

+ 3 - 4
Modules/CMakeFindPackageMode.cmake

@@ -5,10 +5,9 @@
 CMakeFindPackageMode
 --------------------
 
-
-
-This file is executed by cmake when invoked with --find-package.  It
-expects that the following variables are set using -D:
+This file is executed by cmake when invoked with
+:ref:`--find-package <Find-Package Tool Mode>`.
+It expects that the following variables are set using ``-D``:
 
 ``NAME``
   name of the package