]> granicus.if.org Git - graphviz/commitdiff
plugin/pango: work around CMake not generating DLLs with version numbers on MinGW
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 10:14:48 +0000 (11:14 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:27 +0000 (09:35 +0100)
Fixes https://gitlab.com/graphviz/graphviz/-/issues/2176.

CHANGELOG.md
plugin/pango/CMakeLists.txt

index 3b9b02d2d43dd53e9f556d104b9584d794d72b7c..6b28547849503b66b2f3c4674cc1535997039477 100644 (file)
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - SVG layout doesn't always respect requested size #1855
 - mismatched format string in `mingle`
 - Building from scratch with Visual Studio fails #2175
+- Plugins are not configured on MinGW #2176
 
 ## [2.50.0] – 2021-12-04
 
index dfad1d032e799d03b3764ef8f6831d93d4348c44..59cc5c10a58fd5b87ca341c712dbbd0c60a9e83a 100644 (file)
@@ -57,4 +57,11 @@ set_target_properties(gvplugin_pango PROPERTIES
     SOVERSION ${GRAPHVIZ_PLUGIN_VERSION}
 )
 
+if(MINGW)
+    # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716
+    set_target_properties(gvplugin_pango PROPERTIES
+        RUNTIME_OUTPUT_NAME gvplugin_pango-${GRAPHVIZ_PLUGIN_VERSION}
+    )
+endif()
+
 endif()