Skip to content
  • Daniele E. Domenichelli's avatar
    UseSWIG: Add swig_add_library macro. · d0a9d8bb
    Daniele E. Domenichelli authored
    swig_add_module does not allow to set the type for the library and
    instead always create the library as MODULE.
    
    This patch adds the new swig_add_library command with this signature:
    
      SWIG_ADD_LIBRARY(<name>
                       [TYPE <SHARED|MODULE|STATIC>]
                       LANGUAGE <language>
                       SOURCES <file>...
                       )
    
    The swig_add_module is deprecated in favour of swig_add_library.
    
    Closes: #16415
    d0a9d8bb