Merge topic 'doc-find_library-vars'

d27e0eff14 Help: Document when CMAKE_FIND_LIBRARY_{PREFIXES,SUFFIXES} are provided

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10801
This commit is contained in:
Brad King
2025-05-20 12:52:14 +00:00
committed by Kitware Robot
3 changed files with 6 additions and 0 deletions

View File

@@ -7,3 +7,5 @@ This specifies what prefixes to add to library names when the
:command:`find_library` command looks for libraries. On UNIX systems this is
typically ``lib``, meaning that when trying to find the ``foo`` library it
will look for ``libfoo``.
.. include:: include/CMAKE_FIND_LIBRARY_VAR.rst

View File

@@ -10,3 +10,5 @@ is typically ``.lib`` and, depending on the compiler, ``.dll.lib``, ``.dll.a``,
library, it will look for ``[<prefix>]foo[.dll].lib`` and/or
``[<prefix>]foo[.dll].a``, depending on the compiler used and the ``<prefix>``
specified in the :variable:`CMAKE_FIND_LIBRARY_PREFIXES`.
.. include:: include/CMAKE_FIND_LIBRARY_VAR.rst

View File

@@ -0,0 +1,2 @@
CMake sets this variable automatically during toolchain inspection by
calls to the :command:`project` or :command:`enable_language` commands.