Help: Link to cmake-packages(7) from the Module creation documentation.
This commit is contained in:
parent
470c549c62
commit
169f116632
|
@ -720,7 +720,9 @@ by the :command:`find_package` command when invoked for ``<package>``.
|
|||
The primary task of a find module is to determine whether a package
|
||||
exists on the system, set the ``<package>_FOUND`` variable to reflect
|
||||
this and provide any variables, macros and imported targets required to
|
||||
use the package.
|
||||
use the package. A find module is useful in cases where an upstream
|
||||
library does not provide a
|
||||
:ref:`config file package <Config File Packages>`.
|
||||
|
||||
The traditional approach is to use variables for everything, including
|
||||
libraries and executables: see the `Standard Variable Names`_ section
|
||||
|
|
|
@ -76,6 +76,8 @@ By setting the :variable:`CMAKE_DISABLE_FIND_PACKAGE_<PackageName>` variable to
|
|||
``TRUE``, the ``PackageName`` package will not be searched, and will always
|
||||
be ``NOTFOUND``.
|
||||
|
||||
.. _`Config File Packages`:
|
||||
|
||||
Config-file Packages
|
||||
--------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue