vcpkg/ports/expat/mingw_static_fix.patch
Osyotr 77fc723d47
[expat] Fix static builds with mingw (#27137)
Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
2022-10-08 21:13:50 -07:00

12 lines
250 B
Diff

--- 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()