]> granicus.if.org Git - graphviz/commitdiff
plugin/core: work around CMake not generating DLLs with version numbers on MinGW
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 10:14:48 +0000 (11:14 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:26 +0000 (09:35 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2176.

plugin/core/CMakeLists.txt

index 6fa4ec130f9ca31a7e95d4a3a3f8d011a56b6fc0..6857cb0257e416e0feef710b1741abfbb849d300 100644 (file)
@@ -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()