diff options
author | Osyotr <Osyotr@users.noreply.github.com> | 2022-10-07 21:56:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 21:56:31 +0300 |
commit | 90bc7cf0ab81fad0f21c6796de8c4f10d40d964c (patch) | |
tree | fcb94e0faf9f486a27224b4205aa5353a99007fb | |
parent | eb976a36d0150402620e498420c9491422565fc1 (diff) | |
download | libexpat-git-90bc7cf0ab81fad0f21c6796de8c4f10d40d964c.tar.gz |
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
-rw-r--r-- | expat/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 044877e7..a1ffe874 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -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() |