mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
be848a71b0
When targeting the GNU ABI, we consider `.a` libraries first but also
accept `.lib`. For symmetry, when targeting the MSVC ABI, we now
consider `.lib` first but also accept `.a`.
This adds support for meson-generated static libraries, which are named
with the pattern `lib${foo}.a`:
* https://mesonbuild.com/FAQ.html#why-does-building-my-project-with-msvc-output-static-libraries-called-libfooa
Fixes: #23975
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
8 lines
345 B
ReStructuredText
8 lines
345 B
ReStructuredText
detect-lib_foo.a-msvc
|
|
---------------------
|
|
|
|
* On Windows, when targeting the MSVC ABI, the :command:`find_library` command
|
|
now accepts ``.a`` file names after first considering ``.lib``. This is
|
|
symmetric with existing behavior when targeting the GNU ABI, in which the
|
|
command accepts ``.lib`` file names after first considering ``.a``.
|