From c5388bd3202e35502f30253579ae2b31e879a0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=8A=E5=B0=91?= Date: Thu, 2 Nov 2023 21:46:23 -0400 Subject: CMakeFindPackageMode: Link to cmake --find-package documentation --- Help/manual/cmake.1.rst | 1 + Modules/CMakeFindPackageMode.cmake | 7 +++---- 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 `. +It expects that the following variables are set using ``-D``: ``NAME`` name of the package -- cgit v0.12