Merge topic 'doc-find_library-file-name'

941e3bd2 Help: Document in find_library how to search for static libraries
This commit is contained in:
Brad King 2015-04-22 11:16:36 -04:00 committed by CMake Topic Stage
commit 981bdc09c6
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ default will consider one name at a time and search every directory
for it. The NAMES_PER_DIR option tells this command to consider one for it. The NAMES_PER_DIR option tells this command to consider one
directory at a time and search for all names in it. 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
may specify library file names such as ``libfoo.a`` directly.
This can be used to locate static libraries on UNIX-like systems.
If the library found is a framework, then VAR will be set to the full If the library found is a framework, then VAR will be set to the full
path to the framework <fullPath>/A.framework. When a full path to a path to the framework <fullPath>/A.framework. When a full path to a
framework is used as a library, CMake will use a -framework A, and a framework is used as a library, CMake will use a -framework A, and a