summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2021-09-29 12:17:41 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-29 17:38:41 (GMT)
commit9aba0ce29d9e6f1dfc3c17020fac45424d393329 (patch)
tree342f2c629aa7846b59859f08a77f0384e502c817 /Help/variable
parent700f76299c40ba2c17841b69e480d13055743a0c (diff)
downloadCMake-9aba0ce29d9e6f1dfc3c17020fac45424d393329.zip
CMake-9aba0ce29d9e6f1dfc3c17020fac45424d393329.tar.gz
CMake-9aba0ce29d9e6f1dfc3c17020fac45424d393329.tar.bz2
Help: Fix CMAKE_FIND_LIBRARY_SUFFIXES examples for Windows
Fixes: #22697
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst b/Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst
index 4a64e33..c2c2609 100644
--- a/Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst
+++ b/Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst
@@ -5,5 +5,8 @@ Suffixes to append when looking for libraries.
This specifies what suffixes to add to library names when the
:command:`find_library` command looks for libraries. On Windows systems this
-is typically ``.lib`` and ``.dll``, meaning that when trying to find the
-``foo`` library it will look for ``foo.dll`` etc.
+is typically ``.lib`` and, depending on the compiler, ``.dll.a``, ``.a``
+(e.g. GCC and Clang), so when it tries to find the ``foo`` library, it will
+look for ``[<prefix>]foo.lib`` and/or ``[<prefix>]foo[.dll].a``, depending on
+the compiler used and the ``<prefix>`` specified in the
+:variable:`CMAKE_FIND_LIBRARY_PREFIXES`.