Browse Source

Help: Fix CMAKE_FIND_LIBRARY_SUFFIXES examples for Windows

Fixes: #22697
Ralf Habacker 4 years ago
parent
commit
9aba0ce29d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst

+ 5 - 2
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`.