summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author權少 <ljqican@163.com>2023-11-03 01:46:23 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-03 14:17:38 (GMT)
commitc5388bd3202e35502f30253579ae2b31e879a0fd (patch)
tree236c4b8152bcd9c18ff371946daf47ccfc195401
parent1233f2d57a3f51b902e1ae691aaeb7cb7ad3d095 (diff)
downloadCMake-c5388bd3202e35502f30253579ae2b31e879a0fd.zip
CMake-c5388bd3202e35502f30253579ae2b31e879a0fd.tar.gz
CMake-c5388bd3202e35502f30253579ae2b31e879a0fd.tar.bz2
CMakeFindPackageMode: Link to cmake --find-package documentation
-rw-r--r--Help/manual/cmake.1.rst1
-rw-r--r--Modules/CMakeFindPackageMode.cmake7
2 files changed, 4 insertions, 4 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst
index 5223acb..dcd9d7c 100644
--- a/Help/manual/cmake.1.rst
+++ b/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
=========================
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake
index 726e2a2..a6bbcc4 100644
--- a/Modules/CMakeFindPackageMode.cmake
+++ b/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