mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'help-find-library' into release-4.0
4b7ed0ec79 Help: Clarify find_library() behavior for suffixed libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10322
This commit is contained in:
@@ -52,8 +52,10 @@ for it. The ``NAMES_PER_DIR`` option tells this command to consider one
|
||||
directory at a time and search for all names in it.
|
||||
|
||||
Each library name given to the ``NAMES`` option is first considered
|
||||
as a library file name and then considered with platform-specific
|
||||
prefixes (e.g. ``lib``) and suffixes (e.g. ``.so``). Therefore one
|
||||
as is, if it contains a library suffix, and then considered with
|
||||
platform-specific prefixes (e.g. ``lib``) and suffixes (e.g. ``.so``),
|
||||
as defined by the variables :variable:`CMAKE_FIND_LIBRARY_PREFIXES` and
|
||||
:variable:`CMAKE_FIND_LIBRARY_SUFFIXES`. Therefore one
|
||||
may specify library file names such as ``libfoo.a`` directly.
|
||||
This can be used to locate static libraries on UNIX-like systems.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user