]> granicus.if.org Git - graphviz/commitdiff
plugin/gdiplus: 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)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2176.

plugin/gdiplus/CMakeLists.txt

index d9dff7e9279239af6dc4f6761f521f185f4470e3..cae0ff643dd38605b42a659c2e27daccf6959fc3 100644 (file)
@@ -43,4 +43,11 @@ set_target_properties(gvplugin_gdiplus PROPERTIES
     SOVERSION ${GRAPHVIZ_PLUGIN_VERSION}
 )
 
+if(MINGW)
+    # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716
+    set_target_properties(gvplugin_gdiplus PROPERTIES
+        RUNTIME_OUTPUT_NAME gvplugin_gdiplus-${GRAPHVIZ_PLUGIN_VERSION}
+    )
+endif()
+
 endif()