Fix static library name when building with mingw

When building static library with mingw the output file name should be `libexpat.a`, not `libexpat-1.dll`.
This is a regression from https://github.com/libexpat/libexpat/pull/624
Original issue: https://github.com/microsoft/vcpkg/issues/27132
This commit is contained in:
Osyotr 2022-10-07 21:56:31 +03:00 committed by GitHub
parent eb976a36d0
commit 90bc7cf0ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -459,7 +459,7 @@ if(NOT WIN32)
endif()
endif()
if(MINGW)
if(MINGW AND EXPAT_SHARED_LIBS)
set_target_properties(expat PROPERTIES SUFFIX "-${LIBCURRENT_MINUS_AGE}.dll")
endif()