From ebbbd9eead4256a86f312b74a2c79adade69bb8b Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 9 Jan 2022 11:14:48 +0100 Subject: [PATCH] plugin/gdiplus: work around CMake not generating DLLs with version numbers on MinGW Towards https://gitlab.com/graphviz/graphviz/-/issues/2176. --- plugin/gdiplus/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/gdiplus/CMakeLists.txt b/plugin/gdiplus/CMakeLists.txt index d9dff7e92..cae0ff643 100644 --- a/plugin/gdiplus/CMakeLists.txt +++ b/plugin/gdiplus/CMakeLists.txt @@ -43,4 +43,11 @@ set_target_properties(gvplugin_gdiplus PROPERTIES SOVERSION ${GRAPHVIZ_PLUGIN_VERSION} ) +if(MINGW) + # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716 + set_target_properties(gvplugin_gdiplus PROPERTIES + RUNTIME_OUTPUT_NAME gvplugin_gdiplus-${GRAPHVIZ_PLUGIN_VERSION} + ) +endif() + endif() -- 2.40.0