From ce67005268e482a4ef137ab12a2ef8db892b359d Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 9 Jan 2022 11:14:48 +0100 Subject: [PATCH] plugin/core: work around CMake not generating DLLs with version numbers on MinGW Towards https://gitlab.com/graphviz/graphviz/-/issues/2176. --- plugin/core/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/core/CMakeLists.txt b/plugin/core/CMakeLists.txt index 6fa4ec130..6857cb025 100644 --- a/plugin/core/CMakeLists.txt +++ b/plugin/core/CMakeLists.txt @@ -50,3 +50,10 @@ set_target_properties(gvplugin_core 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_core PROPERTIES + RUNTIME_OUTPUT_NAME gvplugin_core-${GRAPHVIZ_PLUGIN_VERSION} + ) +endif() -- 2.40.0