Description: Compile a static library for the Ada binding
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://sourceforge.net/p/plplot/mailman/message/37745643/
Last-Update: 2022-11-29

--- plplot-5.15.0+dfsg.orig/bindings/ada/CMakeLists.txt
+++ plplot-5.15.0+dfsg/bindings/ada/CMakeLists.txt
@@ -88,6 +88,9 @@ if(ENABLE_ada)
   # target_link_libraries used in special way below so avoid using it inside configure_library_build.
   configure_library_build(plplotada "" "${plplotada_BODY_SRCS}" "" "${LIB_INSTALL_RPATH}")
 
+  # Also build the static library
+  configure_library_build(plplotada_static STATIC "${plplotada_BODY_SRCS}" "" "${LIB_INSTALL_RPATH}")
+
   # Work around an issue in our CMake Ada language
   # support for MinGW/Windows.  FIXME.  This issue should be fixed
   # at the Ada language support level and not worked around here.
