Skip to content

UseSWIG: Add swig_add_library macro

Daniele E. Domenichelli requested to merge drdanz/cmake:swig_add_library into master

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>
                   <LANGUAGE> language>
                   <SOURCES <file>...>
                   [TYPE <SHARED|MODULE|STATIC>])

The swig_add_module is deprecated in favour of swig_add_library.

Closes: #16415 (closed)

Merge request reports