From 259f746635196ad2d5ad2a0779315c876b4dbce0 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 9 Jan 2022 11:14:48 +0100 Subject: [PATCH] plugin/pango: work around CMake not generating DLLs with version numbers on MinGW Fixes https://gitlab.com/graphviz/graphviz/-/issues/2176. --- CHANGELOG.md | 1 + plugin/pango/CMakeLists.txt | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b9b02d2d..6b2854784 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - SVG layout doesn't always respect requested size #1855 - mismatched format string in `mingle` - Building from scratch with Visual Studio fails #2175 +- Plugins are not configured on MinGW #2176 ## [2.50.0] – 2021-12-04 diff --git a/plugin/pango/CMakeLists.txt b/plugin/pango/CMakeLists.txt index dfad1d032..59cc5c10a 100644 --- a/plugin/pango/CMakeLists.txt +++ b/plugin/pango/CMakeLists.txt @@ -57,4 +57,11 @@ set_target_properties(gvplugin_pango PROPERTIES SOVERSION ${GRAPHVIZ_PLUGIN_VERSION} ) +if(MINGW) + # work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716 + set_target_properties(gvplugin_pango PROPERTIES + RUNTIME_OUTPUT_NAME gvplugin_pango-${GRAPHVIZ_PLUGIN_VERSION} + ) +endif() + endif() -- 2.40.0