From: Magnus Jacobsson Date: Sun, 9 Jan 2022 10:14:48 +0000 (+0100) Subject: plugin/neato_layout: work around CMake not generating DLLs with version numbers on... X-Git-Tag: 3.0.0~82^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7e778bc4ffe821f4d87f5693290ab1371e6ae73;p=graphviz plugin/neato_layout: work around CMake not generating DLLs with version numbers on MinGW Towards https://gitlab.com/graphviz/graphviz/-/issues/2176. --- 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()