From: Magnus Jacobsson Date: Sun, 9 Jan 2022 10:14:48 +0000 (+0100) Subject: plugin/dot_layout: work around CMake not generating DLLs with version numbers on... X-Git-Tag: 3.0.0~82^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2f7b57da5c78a880df849b1f2f1e0bdae33b864;p=graphviz plugin/dot_layout: work around CMake not generating DLLs with version numbers on MinGW Towards https://gitlab.com/graphviz/graphviz/-/issues/2176. --- diff --git a/plugin/dot_layout/CMakeLists.txt b/plugin/dot_layout/CMakeLists.txt index 1e4ef49f3..563fd93d1 100644 --- a/plugin/dot_layout/CMakeLists.txt +++ b/plugin/dot_layout/CMakeLists.txt @@ -32,3 +32,10 @@ set_target_properties(gvplugin_dot_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_dot_layout PROPERTIES + RUNTIME_OUTPUT_NAME gvplugin_dot_layout-${GRAPHVIZ_PLUGIN_VERSION} + ) +endif()