From 90bc7cf0ab81fad0f21c6796de8c4f10d40d964c Mon Sep 17 00:00:00 2001 From: Osyotr Date: Fri, 7 Oct 2022 21:56:31 +0300 Subject: 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 --- expat/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.1