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

index 1e4ef49f3b94bbb5cc75398bd8e8dd8659b04a4f..563fd93d1bcc378f60095c6537d86d211ee33866 100644 (file)
@@ -32,3 +32,10 @@ set_target_properties(gvplugin_dot_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_dot_layout PROPERTIES
+        RUNTIME_OUTPUT_NAME gvplugin_dot_layout-${GRAPHVIZ_PLUGIN_VERSION}
+    )
+endif()