summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-07-23 11:32:26 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-07-23 11:43:49 (GMT)
commit4f7a0c25d28621ef63c6674f8792ee96f029fce7 (patch)
tree114cfd0c077f3f261ffd9020f110a15d1d238011 /Help
parent76370e06b8bf1631f7329180e58f522cc470ddfa (diff)
downloadCMake-4f7a0c25d28621ef63c6674f8792ee96f029fce7.zip
CMake-4f7a0c25d28621ef63c6674f8792ee96f029fce7.tar.gz
CMake-4f7a0c25d28621ef63c6674f8792ee96f029fce7.tar.bz2
Help: Document BYPASS_PROVIDER keyword for find_package()
Fixes: #23669
Diffstat (limited to 'Help')
-rw-r--r--Help/command/find_package.rst14
1 files changed, 12 insertions, 2 deletions
diff --git a/Help/command/find_package.rst b/Help/command/find_package.rst
index 35e3c51..ee52c41 100644
--- a/Help/command/find_package.rst
+++ b/Help/command/find_package.rst
@@ -103,8 +103,9 @@ Basic Signature
[REQUIRED] [[COMPONENTS] [components...]]
[OPTIONAL_COMPONENTS components...]
[REGISTRY_VIEW (64|32|64_32|32_64|HOST|TARGET|BOTH)]
+ [GLOBAL]
[NO_POLICY_SCOPE]
- [GLOBAL])
+ [BYPASS_PROVIDER])
The basic signature is supported by both Module and Config modes.
The ``MODULE`` keyword implies that only Module mode can be used to find
@@ -181,6 +182,14 @@ only take the single version at the lower end of the range into account.
See the :command:`cmake_policy` command documentation for discussion
of the ``NO_POLICY_SCOPE`` option.
+.. versionadded:: 3.24
+ The ``BYPASS_PROVIDER`` keyword is only allowed when ``find_package()`` is
+ being called by a :ref:`dependency provider <dependency_providers>`.
+ It can be used by providers to call the built-in ``find_package()``
+ implementation directly and prevent that call from being re-routed back to
+ itself. Future versions of CMake may detect attempts to use this keyword
+ from places other than a dependency provider and halt with a fatal error.
+
.. _`full signature`:
Full Signature
@@ -192,8 +201,9 @@ Full Signature
[REQUIRED] [[COMPONENTS] [components...]]
[OPTIONAL_COMPONENTS components...]
[CONFIG|NO_MODULE]
- [NO_POLICY_SCOPE]
[GLOBAL]
+ [NO_POLICY_SCOPE]
+ [BYPASS_PROVIDER]
[NAMES name1 [name2 ...]]
[CONFIGS config1 [config2 ...]]
[HINTS path1 [path2 ... ]]