summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-22 15:16:36 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-22 15:16:36 (GMT)
commit981bdc09c6abe3160f3d365b86848749326b546c (patch)
tree5ae0ff72804c1c7b92cfd743a861c9a4037f8892
parentdf302bcc550e344f4cbe07f7941e1315dfd86ca5 (diff)
parent941e3bd2b63769a0b91224c0d038e13b6cae6255 (diff)
downloadCMake-981bdc09c6abe3160f3d365b86848749326b546c.zip
CMake-981bdc09c6abe3160f3d365b86848749326b546c.tar.gz
CMake-981bdc09c6abe3160f3d365b86848749326b546c.tar.bz2
Merge topic 'doc-find_library-file-name'
941e3bd2 Help: Document in find_library how to search for static libraries
-rw-r--r--Help/command/find_library.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/find_library.rst b/Help/command/find_library.rst
index 09df688..e3dcd2b 100644
--- a/Help/command/find_library.rst
+++ b/Help/command/find_library.rst
@@ -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
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
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