]> granicus.if.org Git - graphviz/commitdiff
CMake: fix missing SO version and MinGW work around in WebP plugin
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 18:07:12 +0000 (11:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 5 Apr 2022 03:03:09 +0000 (20:03 -0700)
This should have been included in 645817efcb9926bdd42f3616eb52e8ea5c199283.

plugin/webp/CMakeLists.txt

index 3c7f0924dbedff343ebe188a26852d30f51fd09e..ee4e520051300eca25cac828aa7e44f9669f6ed0 100644 (file)
@@ -35,4 +35,16 @@ if(WEBP_FOUND)
     ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR}
   )
 
+  set_target_properties(gvplugin_webp 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_webp PROPERTIES
+      RUNTIME_OUTPUT_NAME gvplugin_webp-${GRAPHVIZ_PLUGIN_VERSION}
+    )
+  endif()
+
 endif()