From: Magnus Jacobsson Date: Sun, 9 Jan 2022 10:14:48 +0000 (+0100) Subject: plugin/gd: work around CMake not generating DLLs with version numbers on MinGW X-Git-Tag: 3.0.0~82^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3979e20047f0968d4f1afc6fc3e62e7ed5a57ef2;p=graphviz plugin/gd: work around CMake not generating DLLs with version numbers on MinGW Towards https://gitlab.com/graphviz/graphviz/-/issues/2176. --- diff --git a/plugin/gd/CMakeLists.txt b/plugin/gd/CMakeLists.txt index f5d11ece5..161ba61f5 100644 --- a/plugin/gd/CMakeLists.txt +++ b/plugin/gd/CMakeLists.txt @@ -50,4 +50,12 @@ set_target_properties(gvplugin_gd PROPERTIES SOVERSION ${GRAPHVIZ_PLUGIN_VERSION} ) + +if(MINGW) + # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716 + set_target_properties(gvplugin_gd PROPERTIES + RUNTIME_OUTPUT_NAME gvplugin_gd-${GRAPHVIZ_PLUGIN_VERSION} + ) +endif() + endif()