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

Merged 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
Signed-off-by: Yonggang Luo

Edited by Brad King

Merge request reports