summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-03 14:52:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-11-03 14:52:53 (GMT)
commit8a7500a438c6d20482b29bb646f3447d6d2961b7 (patch)
treef9ed5f318ed2b14ab3c8603501c7b1dea7335221
parentd11757fb33407b0bc6a897849ba8a46c17ff324e (diff)
parentc5388bd3202e35502f30253579ae2b31e879a0fd (diff)
downloadCMake-8a7500a438c6d20482b29bb646f3447d6d2961b7.zip
CMake-8a7500a438c6d20482b29bb646f3447d6d2961b7.tar.gz
CMake-8a7500a438c6d20482b29bb646f3447d6d2961b7.tar.bz2
Merge topic 'CMakeFindPackageMode-link-docs'
c5388bd320 CMakeFindPackageMode: Link to cmake --find-package documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8943
-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