Skip to content

MSVC: Teach find_library to consider the 'libfoo.a' naming convention

Yonggang Luo requested to merge lygstate/cmake:detect-lib_foo.a-msvc into master

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.

Fixes: #23975 (closed)
Signed-off-by: Yonggang Luo luoyonggang@gmail.com

Edited by Brad King

Merge request reports