From 9aba0ce29d9e6f1dfc3c17020fac45424d393329 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 29 Sep 2021 14:17:41 +0200 Subject: Help: Fix CMAKE_FIND_LIBRARY_SUFFIXES examples for Windows Fixes: #22697 --- Help/variable/CMAKE_FIND_LIBRARY_SUFFIXES.rst | 7 +++++-- 1 file 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 ``[]foo.lib`` and/or ``[]foo[.dll].a``, depending on +the compiler used and the ```` specified in the +:variable:`CMAKE_FIND_LIBRARY_PREFIXES`. -- cgit v0.12