summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsyotr <Osyotr@users.noreply.github.com>2022-10-07 21:56:31 +0300
committerGitHub <noreply@github.com>2022-10-07 21:56:31 +0300
commit90bc7cf0ab81fad0f21c6796de8c4f10d40d964c (patch)
treefcb94e0faf9f486a27224b4205aa5353a99007fb
parenteb976a36d0150402620e498420c9491422565fc1 (diff)
downloadlibexpat-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.txt2
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()