]> granicus.if.org Git - graphviz/commitdiff
plugin/neato_layout: work around CMake not generating DLLs with version numbers on...
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/neato_layout/CMakeLists.txt

index 7c34db1a19b68f00df1ea7c0253a1ff4d461e1c1..830cb2734d9b8135be2c5a91b7c5a622fbab1f82 100644 (file)
@@ -47,3 +47,10 @@ set_target_properties(gvplugin_neato_layout PROPERTIES
     VERSION ${GRAPHVIZ_PLUGIN_VERSION}.0.0
     SOVERSION ${GRAPHVIZ_PLUGIN_VERSION}
 )
+
+if(MINGW)
+    # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716
+    set_target_properties(gvplugin_neato_layout PROPERTIES
+        RUNTIME_OUTPUT_NAME gvplugin_neato_layout-${GRAPHVIZ_PLUGIN_VERSION}
+    )
+endif()