From b7e778bc4ffe821f4d87f5693290ab1371e6ae73 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 9 Jan 2022 11:14:48 +0100 Subject: [PATCH] plugin/neato_layout: work around CMake not generating DLLs with version numbers on MinGW Towards https://gitlab.com/graphviz/graphviz/-/issues/2176. --- plugin/neato_layout/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/neato_layout/CMakeLists.txt b/plugin/neato_layout/CMakeLists.txt index 7c34db1a1..830cb2734 100644 --- a/plugin/neato_layout/CMakeLists.txt +++ b/plugin/neato_layout/CMakeLists.txt @@ -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() -- 2.40.0