mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 11:18:35 -06:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
Help/variable/include/CMAKE_FIND_LIBRARY_VAR.rst
Normal file
2
Help/variable/include/CMAKE_FIND_LIBRARY_VAR.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
CMake sets this variable automatically during toolchain inspection by
|
||||
calls to the :command:`project` or :command:`enable_language` commands.
|
||||
Reference in New Issue
Block a user