]> granicus.if.org Git - graphviz/commitdiff
plugin/gd: 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/gd/CMakeLists.txt

index f5d11ece59a09e4b3401093985524abd60c2db2f..161ba61f544d7fbb3919f41466e31b461e39a2ce 100644 (file)
@@ -50,4 +50,12 @@ set_target_properties(gvplugin_gd PROPERTIES
     SOVERSION ${GRAPHVIZ_PLUGIN_VERSION}
 )
 
+
+if(MINGW)
+    # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716
+    set_target_properties(gvplugin_gd PROPERTIES
+        RUNTIME_OUTPUT_NAME gvplugin_gd-${GRAPHVIZ_PLUGIN_VERSION}
+    )
+endif()
+
 endif()