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